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

Disassembly:
push 0xffffffffffffffff
push 0x56b9b9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x40], 0
call fcn.00501210
mov ecx, dword [esp + 0x7c]
mov esi, eax
mov dword [esp + 0x30], esi
call fcn.00501210
cmp eax, esi
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
cmovae ecx, edx
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x4f9081
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [esp + 0x74]
push eax
call fcn.004fde60
mov eax, dword [esp + 0x74]
jmp 0x4f952a
cmp eax, 0x2e
ja 0x4f908d
mov eax, 1
jmp 0x4f909b
mov ecx, 0x104
cmp ecx, eax
sbb eax, eax
neg eax
add eax, 2
mov ecx, eax
mov dword [esp + 0x1c], eax
mov ebp, 1
shl ebp, cl
mov ebx, ebp
mov dword [esp + 0x14], ebp
shl ebx, cl
lea ecx, [esp + 0x44]
push ebx
mov dword [esp + 0x1c], ebx
call fcn.004f8920
mov esi, dword [esp + 0x44]
push dword [esp + 0x78]
mov dword [esp + 0x70], 1
lea ecx, [esi + 0x14]
mov dword [esp + 0x24], ecx
call fcn.004fe4f0
lea eax, [ebp*4]
add eax, ebp
shl eax, 2
mov dword [esp + 0x34], eax
add eax, esi
mov esi, dword [esp + 0x80]
mov ecx, eax
push esi
mov dword [esp + 0x30], eax
call fcn.004fe4f0
cmp dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x78]
jne 0x4f912b
push dword [esp + 0x80]
mov eax, dword [edi]
mov esi, dword [esp + 0x48]
push ecx
mov ecx, edi
call dword [eax + 0xc]
push eax
lea ecx, [esi + 0x3c]
call fcn.004fe4f0
jmp 0x4f934b
mov eax, dword [esp + 0x44]
add eax, 0x28
mov dword [esp + 0x24], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esp + 0x24]
push eax
call fcn.004fe4f0
lea eax, [ebp*4]
mov ecx, edi
add eax, ebp
shl eax, 3
mov dword [esp + 0x38], eax
add eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [edi]
push esi
call dword [eax + 0x18]
mov ecx, dword [esp + 0x30]
push eax
call fcn.004fe4f0
cmp ebp, 3
jbe 0x4f91aa
mov esi, dword [esp + 0x44]
add ebp, 0xfffffffc
mov ebx, dword [esp + 0x24]
add esi, 0x3c
shr ebp, 1
inc ebp
mov edx, dword [edi]
lea eax, [esi - 0x28]
push ebx
push eax
mov ecx, edi
call dword [edx + 0xc]
push eax
mov ecx, esi
call fcn.004fe4f0
add esi, 0x28
dec ebp
jne 0x4f9188
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
cmp ebp, 1
jbe 0x4f923d
mov ecx, dword [esp + 0x2c]
lea esi, [ebp - 2]
mov edx, dword [esp + 0x20]
lea eax, [ebp + 1]
add ecx, 0x14
shr esi, 1
inc esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov ebp, eax
cmp eax, ebx
jae 0x4f921d
mov esi, ecx
mov ebx, edx
lea ecx, [ecx]
push dword [esp + 0x80]
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
push eax
mov ecx, esi
call fcn.004fe4f0
add ebp, dword [esp + 0x14]
add ebx, dword [esp + 0x34]
add esi, dword [esp + 0x34]
cmp ebp, dword [esp + 0x18]
jb 0x4f91e0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add eax, 2
add ecx, 0x28
add edx, 0x28
mov dword [esp + 0x24], eax
dec esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], esi
jne 0x4f91d3
mov ebp, dword [esp + 0x14]
lea esi, [ebp*2]
add esi, ebp
cmp esi, ebx
jae 0x4f92a6
mov edx, dword [esp + 0x44]
lea ecx, [ebp*2]
lea eax, [esi + esi*4]
mov dword [esp + 0x34], ecx
lea ebp, [edx + eax*4]
mov eax, esi
sub eax, ecx
lea eax, [eax + eax*4]
lea ecx, [edx + eax*4]
mov dword [esp + 0x80], ecx
push dword [esp + 0x30]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xc]
push eax
mov ecx, ebp
call fcn.004fe4f0
mov ecx, dword [esp + 0x80]
add esi, dword [esp + 0x34]
add ecx, dword [esp + 0x38]
add ebp, dword [esp + 0x38]
mov dword [esp + 0x80], ecx
cmp esi, ebx
jb 0x4f9270
mov ebp, dword [esp + 0x14]
mov ecx, ebp
mov dword [esp + 0x80], ecx
cmp ebp, ebx
jae 0x4f934b
mov edx, dword [esp + 0x44]
lea esi, [ebp*2]
lea eax, [esi + esi*4]
mov dword [esp + 0x38], esi
shl eax, 2
mov ebp, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea eax, [eax + 0xa]
lea edx, [edx + eax*4]
mov eax, 2
sub eax, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
add eax, ebp
cmp eax, ebp
jae 0x4f9330
mov esi, ebp
mov ebx, edx
sub esi, eax
dec esi
shr esi, 1
inc esi
push dword [esp + 0x78]
mov edx, dword [edi]
lea eax, [ebx - 0x14]
push eax
mov ecx, edi
call dword [edx + 0xc]
push eax
mov ecx, ebx
call fcn.004fe4f0
add ebx, 0x28
dec esi
jne 0x4f9300
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
add edx, dword [esp + 0x34]
add ecx, esi
mov eax, dword [esp + 0x2c]
add ebp, esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x30], edx
cmp ecx, ebx
jb 0x4f92f0
lea ecx, [esp + 0x50]
call fcn.004fe0b0
mov ebp, dword [esp + 0x3c]
xor esi, esi
xor ebx, ebx
mov byte [esp + 0x6c], 2
mov byte [esp + 0x78], 1
lea eax, [ebp - 1]
dec ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebp
js 0x4f94aa
jmp 0x4f9380
mov ecx, dword [esp + 0x7c]
push ebp
call fcn.00503070
mov ecx, dword [esp + 0x84]
movzx eax, al
push ebp
lea esi, [eax + esi*2]
mov dword [esp + 0x84], esi
call fcn.00503070
movzx eax, al
mov edx, esi
lea ebx, [eax + ebx*2]
test ebp, ebp
je 0x4f93c6
mov ecx, dword [esp + 0x14]
lea eax, [edx + edx]
cmp eax, ecx
jae 0x4f93c6
lea eax, [ebx + ebx]
cmp eax, ecx
jb 0x4f9498
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
sub esi, ebp
xor ebp, ebp
mov dword [esp + 0x30], eax
test edx, edx
jne 0x4f93de
test ebx, ebx
je 0x4f93f0
test dl, 1
jne 0x4f93f0
test bl, 1
jne 0x4f93f0
shr edx, 1
dec esi
shr ebx, 1
inc ebp
jmp 0x4f93d6
cmp byte [esp + 0x78], 0
mov dword [esp + 0x80], edx
je 0x4f9421
mov ecx, dword [esp + 0x1c]
shl ebx, cl
mov ecx, dword [esp + 0x44]
add ebx, edx
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x54]
call fcn.004fe4f0
mov byte [esp + 0x78], 0
jmp 0x4f9471
test esi, esi
je 0x4f9445
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x18]
push eax
lea ecx, [esp + 0x54]
call fcn.004fe4f0
dec esi
jne 0x4f9425
mov edx, dword [esp + 0x80]
test edx, edx
jne 0x4f944d
test ebx, ebx
je 0x4f9471
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
shl ebx, cl
add ebx, dword [esp + 0x80]
mov ecx, dword [esp + 0x44]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, edi
push eax
lea eax, [esp + 0x54]
push eax
call dword [edx + 0x20]
test ebp, ebp
je 0x4f948e
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x18]
push eax
lea ecx, [esp + 0x54]
call fcn.004fe4f0
dec ebp
jne 0x4f9475
mov ebp, dword [esp + 0x20]
xor ebx, ebx
xor esi, esi
jmp 0x4f949f
mov esi, dword [esp + 0x80]
dec ebp
mov dword [esp + 0x20], ebp
jns 0x4f9380
mov ebx, dword [esp + 0x74]
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.004fde60
mov edx, dword [esp + 0x58]
xor eax, eax
mov esi, dword [esp + 0x5c]
mov ecx, edx
mov edi, esi
mov dword [esp + 0x40], 1
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov byte [esp + 0x6c], 1
push esi
cmp eax, 0x10
jb 0x4f94eb
call fcn.004edb70
jmp 0x4f94f0
call fcn.00443e80
mov ebp, dword [esp + 0x48]
add esp, 4
mov byte [esp + 0x6c], 0
test ebp, ebp
je 0x4f9528
mov edi, dword [esp + 0x48]
mov esi, ebp
cmp ebp, edi
je 0x4f951f
lea ebx, [ebx]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x14
cmp esi, edi
jne 0x4f9510
push ebp
call fcn.00443e80
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14