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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x318
mov eax, dword [ebp + 8]
mov edx, dword [0x567b10]
xor edx, ebp
mov dword [esp + 0x310], edx
mov ebx, dword [ecx + 0x2f4]
mov dword [esp + 8], ecx
mov edx, dword [ecx + 0x300]
test edx, edx
je 0x4f9a73
mov esi, eax
shr esi, 4
mov edi, eax
shr edi, 9
xor edi, esi
lea esi, [edx - 1]
and edi, esi
mov ecx, dword [ebx + edi*8]
cmp ecx, eax
jne 0x4f9a42
lea esi, [ebx + edi*8]
jmp 0x4f9a76
mov dword [esp + 0xc], esi
mov dword [esp + 4], 1
cmp ecx, 0xfffff000
je 0x4f9a73
mov ecx, dword [esp + 4]
add edi, ecx
add ecx, 1
mov dword [esp + 4], ecx
and edi, dword [esp + 0xc]
lea esi, [ebx + edi*8]
mov ecx, dword [ebx + edi*8]
cmp ecx, eax
je 0x4f9a76
jmp 0x4f9a4e
lea esi, [ebx + edx*8]
lea ecx, [ebx + edx*8]
cmp esi, ecx
je 0x4f9a9e
cmp byte [esi + 4], 0
setne bl
mov ecx, dword [esp + 0x310]
xor ecx, ebp
call fcn.00533ace
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x4f9acf
movzx edx, byte [ebp + 0xc]
add edx, 3
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
lea esi, [esp + 0xd8]
push 0
push 0
push edx
push dword [ebp + 0x1c]
push eax
push esi
call fcn.00450260
mov ebx, dword [esp + 0xd8]
mov esi, dword [esp + 8]
lea edi, [esi + 0x2f4]
mov ecx, dword [esi]
lea eax, [esp + 0x24]
push 0
push ebx
push eax
call fcn.0045a7e0
cmp byte [esp + 0x34], 0
je 0x4f9b09
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x14], edi
je 0x4f9b93
mov eax, dword [eax]
jmp 0x4f9b95
mov ecx, dword [esi + 0x300]
test ecx, ecx
je 0x4f9e44
mov dword [esp + 0x14], edi
mov edx, dword [esi + 0x2f4]
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 4
mov edi, esi
shr edi, 9
xor edi, eax
add ecx, 0xffffffff
and edi, ecx
lea eax, [edx + edi*8]
mov ebx, dword [edx + edi*8]
cmp esi, ebx
je 0x4f9e5c
mov dword [esp + 8], 0
mov dword [esp + 4], 1
cmp ebx, 0xfffff000
je 0x4f9fbd
xor ebx, 0xffffe000
or ebx, dword [esp + 8]
mov ebx, dword [esp + 8]
cmove ebx, eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 4]
add edi, eax
add eax, 1
mov dword [esp + 4], eax
and edi, ecx
lea eax, [edx + edi*8]
mov ebx, dword [edx + edi*8]
cmp esi, ebx
je 0x4f9e5c
jmp 0x4f9b53
xor eax, eax
mov edi, dword [esp + 0x28]
add edi, edx
add eax, edx
mov dword [esp + 4], eax
lea eax, [esi + 0x28]
mov dword [esp + 0xc], eax
mov ecx, dword [esi]
mov byte [esp + 0xd8], 0
lea eax, [ebx + 1]
cmp eax, 2
jae 0x4f9e39
xor eax, eax
lea ebx, [esp + 0xd8]
mov ecx, ebx
push edi
push dword [esp + 8]
push edx
push dword [esp + 0x18]
push eax
call fcn.004b9450
lea eax, [esp + 0x20]
mov ecx, ebx
push 1
push dword [esp + 0x300]
push eax
call fcn.004ba760
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov al, byte [ebp + 0xc]
mov byte [esp + 0x60], al
mov byte [esp + 0x61], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 4
lea eax, [esp + 0x98]
mov dword [esp + 0x8c], eax
movaps xmm0, xmmword [0x536710]
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xb8], 0
lea eax, [esp + 0xd0]
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], 2
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xa0], 3
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xb0], 0
lea eax, [esp + 0x38]
lea ebx, [esp + 0x40]
mov ecx, ebx
push eax
call fcn.004fb460
mov ecx, ebx
call fcn.00504a10
mov ecx, dword [esi + 0x300]
test ecx, ecx
mov byte [esp + 4], al
je 0x4f9d31
mov ebx, dword [esi + 0x2f4]
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 4
mov edi, esi
shr edi, 9
xor edi, eax
add ecx, 0xffffffff
and edi, ecx
lea eax, [ebx + edi*8]
mov edx, dword [ebx + edi*8]
cmp esi, edx
jne 0x4f9f46
mov bl, byte [esp + 4]
jmp 0x4f9d4d
mov ebx, eax
xor eax, eax
lea edx, [ebp + 8]
mov ecx, dword [esp + 0x14]
push eax
push edx
push edx
call fcn.00508a80
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov byte [eax + 4], bl
cmp dword [ebp + 0x18], 0
mov esi, dword [esp + 8]
je 0x4f9d8c
mov edi, dword [esi]
mov ebx, dword [esp + 0xa4]
mov ecx, edi
push ebx
lea eax, [esp + 0x3c]
push eax
call fcn.0045b580
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x3f], 0
lea eax, [ecx + 1]
cmp eax, 2
jae 0x4f9e67
xor edi, edi
mov edx, dword [ebp + 0x18]
mov dword [edx], edi
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4f9dcb
mov eax, dword [esi + 0x14]
mov dword [esp + 8], eax
shl edi, 2
xor ebx, ebx
movzx esi, byte [ebp + 0xc]
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [esp + 8]
mov ecx, dword [eax + ebx]
mov eax, dword [ecx]
push esi
push dword [ebp + 8]
push dword [esp + 0x28]
call dword [eax + 8]
add ebx, 4
cmp edi, ebx
jne 0x4f9db0
mov eax, dword [esp + 0xc0]
cmp eax, dword [esp + 0xbc]
je 0x4f9de5
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [esp + 0x64]
call fcn.0040abd0
mov dword [esp + 0xd8], 0x55ba1c
lea ecx, [esp + 0x138]
call fcn.00406fa0
mov dword [esp + 0xd8], 0x55ba2c
mov eax, dword [esp + 0x100]
lea ecx, [esp + 0x10c]
cmp eax, ecx
mov bl, byte [esp + 4]
je 0x4f9a84
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x4f9a84
test ebx, ebx
js 0x4f9e76
add ecx, 0x6c
mov eax, ebx
jmp 0x4f9e9f
xor eax, eax
lea edx, [ebp + 8]
mov ecx, edi
push eax
push edx
push edx
call fcn.00508a80
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov byte [eax + 4], 1
mov bl, 1
jmp 0x4f9a84
mov dword [esp + 0xc], ebx
test ecx, ecx
js 0x4f9ebe
add edi, 0x6c
mov eax, ecx
jmp 0x4f9edb
mov dword [esp + 0x10], edx
mov eax, 0xfffffffe
sub eax, ebx
mov edx, eax
shr edx, 5
mov esi, dword [ecx + 0x8c]
mov edx, dword [esi + edx*4]
bt edx, eax
jae 0x4f9f06
add ecx, 0x78
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4f9bbe
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax]
test eax, eax
jns 0x4f9bc0
jmp 0x4f9bbe
mov eax, 0xfffffffe
sub eax, ecx
mov ecx, eax
shr ecx, 5
mov edx, dword [edi + 0x8c]
mov ecx, dword [edx + ecx*4]
bt ecx, eax
jae 0x4f9f2c
add edi, 0x78
mov ecx, dword [edi]
test ecx, ecx
je 0x4f9d85
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0xc]
and edi, 0x7fffffff
mov ecx, 0x7fffffff
and ecx, dword [eax]
sub edi, ecx
jmp 0x4f9d8a
lea edx, [esp + 0xd8]
push edx
push eax
call fcn.0044fcd0
cmp byte [esp + 0xd8], 0
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
jne 0x4f9bbe
jmp 0x4f9eaf
lea edx, [esp + 0x3f]
mov ecx, edi
push edx
push eax
call fcn.0044fcd0
cmp byte [esp + 0x3f], 0
jne 0x4f9d85
jmp 0x4f9eeb
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 1
mov bl, byte [esp + 4]
cmp dword [esp + 0xc], 0xfffff000
je 0x4f9faf
mov edx, dword [esp + 0xc]
xor edx, 0xffffe000
mov ebx, dword [esp + 0x10]
or edx, ebx
cmove ebx, eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
add edi, eax
add eax, 1
mov dword [esp + 0x18], eax
and edi, ecx
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + edi*8]
mov edx, dword [ebx + edi*8]
movzx ebx, byte [esp + 4]
mov dword [esp + 0xc], edx
cmp esi, edx
je 0x4f9d4d
jmp 0x4f9f62
mov ecx, dword [esp + 0x10]
test ecx, ecx
cmovne eax, ecx
jmp 0x4f9d35
mov ecx, dword [esp + 8]
test ecx, ecx
cmovne eax, ecx
mov edi, dword [esp + 0x14]
jmp 0x4f9e46