Function at 0x57f2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0xac
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x57fa00
mov eax, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xec]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00552d80
sub esp, 0xc
test al, al
jne 0x57f8a6
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
call dword [eax + 0x70]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test al, al
mov esi, eax
je 0x57f9c0
call fcn.004cb890
mov dword [esp], 8
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov esi, eax
call fcn.004cb890
test esi, esi
mov dword [ebp - 0x84], eax
je 0x57f391
lea eax, [ebp - 0x84]
mov ecx, esi
mov dword [esp + 4], eax
mov dword [esp], 0x6e8f02
call fcn.005f4b30
sub esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax]
call dword [eax + 0x70]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov ecx, esi
mov dword [esp], eax
call fcn.005f4160
mov ecx, dword [edi + 0xec]
sub esp, 4
mov dword [esp], esi
call fcn.005515d0
sub esp, 4
mov dword [esp], ebx
mov ecx, esi
call fcn.005f4160
sub esp, 4
movzx eax, byte [ebp - 0x20]
and byte [ebp - 0x74], 0xc0
and byte [ebp - 0x7e], 0xf0
and byte [ebp - 0x7c], 0xfe
and eax, 0xfffffff8
or eax, 4
mov byte [ebp - 0x20], al
movzx eax, word [ebp - 0x5a]
and byte [ebp - 0x24], 0x80
or byte [ebp - 0x1c], 0xf
and word [ebp - 0x72], 0xfe3f
and ax, 0xf80f
or ax, 0x3f0
and word [ebp - 0x74], 0xc03f
and byte [ebp - 0x6f], 0x80
and byte [ebp - 0x6c], 0x80
mov dword [ebp - 0x84], 0x6f2308
mov byte [ebp - 0x80], 0
mov byte [ebp - 0x7f], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x64], 0xffffffff
mov word [ebp - 0x5a], ax
movzx eax, byte [ebp - 0x5c]
movzx edx, word [ebp - 0x46]
or byte [ebp - 0x50], 0x7f
or dword [ebp - 0x58], 0x7fff8000
and eax, 0xfffffff8
or eax, 4
or dx, 0x1fe0
mov byte [ebp - 0x5c], al
mov eax, dword [ebp - 0x54]
mov word [ebp - 0x46], dx
shr dx, 8
or edx, 0xffffffe0
mov byte [ebp - 0x45], dl
or eax, 0x7f8000
mov dword [ebp - 0x54], eax
shr eax, 0x18
or eax, 0xffffff80
or word [ebp - 0x60], 0xfff
or word [ebp - 0x50], 0x780
or dword [ebp - 0x4c], 0x1ff80
or word [ebp - 0x48], 0x1ff8
and byte [ebp - 0x41], 0x1f
and byte [ebp - 0x40], 0xe0
and dword [ebp - 0x74], 0xffc03fff
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x3c], 0xfffff800
mov byte [ebp - 0x51], al
mov byte [ebp - 0x44], 0xff
call fcn.004cb890
mov dword [esp], 0xac
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov ebx, eax
mov dword [eax + 4], esi
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [eax + 0x14], 1
mov dword [eax], 0x6f24e8
call fcn.004cb890
and byte [ebx + 0x38], 0xc0
and byte [ebx + 0x2e], 0xf0
and byte [ebx + 0x30], 0xfe
and byte [ebx + 0x88], 0x80
or byte [ebx + 0x90], 0xf
and word [ebx + 0x3a], 0xfe3f
and word [ebx + 0x38], 0xc03f
and byte [ebx + 0x3d], 0x80
mov dword [ebx + 0x18], eax
movzx eax, byte [ebx + 0x8c]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x8c], al
mov dword [ebx + 0x28], 0x6f2308
mov byte [ebx + 0x2c], 0
mov byte [ebx + 0x2d], 1
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov byte [ebx + 0x84], 0
mov byte [ebx + 0x85], 0
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x3c], 0
and byte [ebx + 0x40], 0x80
movzx eax, word [ebx + 0x52]
movzx edx, word [ebx + 0x66]
or byte [ebx + 0x5c], 0x7f
or dword [ebx + 0x54], 0x7fff8000
and ax, 0xf80f
or ax, 0x3f0
or dx, 0x1fe0
mov word [ebx + 0x52], ax
movzx eax, byte [ebx + 0x50]
mov word [ebx + 0x66], dx
shr dx, 8
or edx, 0xffffffe0
or word [ebx + 0x4c], 0xfff
and eax, 0xfffffff8
or eax, 4
mov byte [ebx + 0x50], al
mov eax, dword [ebx + 0x58]
or word [ebx + 0x5c], 0x780
or dword [ebx + 0x60], 0x1ff80
or word [ebx + 0x64], 0x1ff8
or eax, 0x7f8000
mov dword [ebx + 0x58], eax
shr eax, 0x18
or eax, 0xffffff80
mov byte [ebx + 0x5b], al
lea eax, [ebx + 0x98]
mov byte [ebx + 0x67], dl
and byte [ebx + 0x6b], 0x1f
and byte [ebx + 0x6c], 0xe0
mov dword [ebx + 0x44], 0xffffffff
mov dword [ebx + 0x48], 0xffffffff
mov byte [ebx + 0x6d], 0
mov byte [ebx + 0x6e], 0
mov byte [ebx + 0x6f], 0
mov dword [ebx + 0x70], 0xfffff800
mov byte [ebx + 0x68], 0xff
and dword [ebx + 0x38], 0xffc03fff
mov edx, dword [esi + 4]
mov dword [ebp - 0x94], eax
mov eax, dword [esi]
mov ecx, dword [edx - 4]
mov dword [ebp - 0x8c], eax
test ecx, ecx
js 0x57f8f1
lock add dword [edx - 4], 1
mov esi, edx
mov ecx, dword [esi - 0xc]
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x9c], esi
cmp ecx, 0x3ffffffc
mov dword [ebx + 0x98], eax
je 0x57fa13
lea eax, [ecx + 1]
cmp eax, dword [esi - 8]
ja 0x57f6b5
mov edx, dword [esi - 4]
test edx, edx
jle 0x57f6db
mov ecx, dword [ebp - 0x94]
mov dword [esp], eax
mov dword [ebp - 0x8c], eax
call fcn.005f4880
mov esi, dword [ebx + 0x9c]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [esi - 0xc]
sub esp, 4
mov byte [esi + ecx], 0x28
mov edx, dword [ebx + 0x9c]
lea esi, [ebp - 0x84]
mov ecx, esi
mov dword [edx - 4], 0
mov dword [edx - 0xc], eax
mov byte [edx + eax], 0
mov byte [ebx + 0xa4], 0
mov byte [ebx + 0xa5], 0
mov byte [ebx + 0xa6], 0
mov byte [ebx + 0xa7], 0
mov dword [ebx + 0xa8], 0
movzx eax, byte [ebp - 0x80]
mov dword [ebx + 0xa0], 0
mov byte [ebx + 0x2c], al
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x8c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x90], eax
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x68]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x64]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x70], eax
movzx eax, byte [ebx + 0x2d]
movzx edx, byte [ebp - 0x7f]
and eax, 0xfffffff0
and edx, 0xf
or eax, edx
mov byte [ebx + 0x2d], al
movzx edx, byte [ebp - 0x7f]
and eax, 0xf
and edx, 0xfffffff0
or eax, edx
mov byte [ebx + 0x2d], al
movzx eax, byte [ebx + 0x2e]
movzx edx, byte [ebp - 0x7e]
and eax, 0xfffffff0
and edx, 0xf
or eax, edx
mov byte [ebx + 0x2e], al
movzx eax, byte [ebx + 0x30]
movzx edx, byte [ebp - 0x7c]
and eax, 0xfffffffe
and edx, 1
or eax, edx
mov byte [ebx + 0x30], al
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x80], eax
call fcn.005cdf10
movzx eax, word [eax + 4]
shr ax, 6
movzx eax, al
mov dword [ebx + 0x94], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], 0
test eax, eax
je 0x57f85c
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi + 0xec]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.005494f0
sub esp, 0xc
mov dword [esp + 4], esi
mov ecx, edi
mov dword [esp], ebx
call fcn.0057f1f0
sub esp, 8
test al, al
mov esi, eax
je 0x57f89a
mov eax, dword [ebp - 0x84]
mov ecx, dword [edi + 0xec]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00570490
mov edx, dword [ebp + 0x10]
sub esp, 0xc
mov dword [edx], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call fcn.004cb890
mov dword [esp], 8
mov ecx, eax
call fcn.004cba30
sub esp, 4
mov esi, eax
call fcn.004cb890
test esi, esi
mov dword [ebp - 0x84], eax
je 0x57f3c1
lea eax, [ebp - 0x84]
mov ecx, esi
mov dword [esp + 4], eax
mov dword [esp], str.__BI_
call fcn.005f4b30
sub esp, 8
jmp 0x57f3c1
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
cmp esi, 0x3ffffffc
ja 0x57fa07
cmp esi, eax
jbe 0x57f90f
lea ecx, [eax + eax]
cmp esi, ecx
cmovb esi, ecx
lea ecx, [esi + 0x1d]
cmp ecx, 0x1000
jbe 0x57f939
cmp eax, esi
jae 0x57f939
lea eax, [esi + 0x1000]
and ecx, 0xfff
sub eax, ecx
mov esi, 0x3ffffffc
cmp eax, 0x3ffffffc
cmovbe esi, eax
mov ecx, dword [ebp - 0x8c]
lea eax, [esi + 0xd]
mov dword [esp], eax
mov dword [ebp - 0x90], edx
call fcn.004cba30
mov edx, dword [ebp - 0x90]
mov ecx, eax
sub esp, 4
mov dword [eax + 4], esi
lea esi, [ecx + 0xc]
mov dword [eax + 8], 0
mov eax, dword [edx - 0xc]
test eax, eax
je 0x57f99f
cmp eax, 1
je 0x57f9b1
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x90], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x98]
mov eax, dword [edx - 0xc]
mov dword [ecx + 8], 0
mov dword [ecx], eax
mov byte [esi + eax], 0
jmp 0x57f685
movzx eax, byte [edx]
mov byte [ecx + 0xc], al
mov eax, dword [edx - 0xc]
jmp 0x57f99f
mov eax, dword [edi + 0xec]
add edi, 8
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x10], 0x6e8f02
mov dword [esp + 0xc], str.structure
mov dword [esp + 8], str.Expected
call edx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, ebx
jmp 0x57f3ce
mov dword [esp], 0x6e8ec0
call fcn.0064ba80
mov dword [esp], 0x6e8fee
call fcn.0064ba80
nop