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

Disassembly:
sub esp, 0x570
push ebx
push ebp
push esi
lea eax, [esp + 0x20]
push edi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
call fcn.004f4070
test eax, eax
jne 0x4f446f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x570
ret
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4f47e9
cmp eax, 0x40
jbe 0x4f448d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x570
ret
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jbe 0x4f47e9
mov dword [esp + 0x14], ebx
jmp 0x4f44a3
mov ebx, dword [esp + 0x14]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, 0x143
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4f452c
mov ecx, dword [esi + 0x60]
sub ecx, eax
test ecx, 0xfffffffc
je 0x4f452c
mov ebp, dword [esi + 0x60]
mov edx, dword [esp + 0x28]
mov edi, eax
mov ecx, ebp
sub ecx, edi
add ebx, edx
sar ecx, 2
test ecx, ecx
jle 0x4f4504
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + eax*4], ebx
jae 0x4f44fe
or edx, 0xffffffff
lea edi, [edi + eax*4 + 4]
sub edx, eax
add ecx, edx
jmp 0x4f4500
mov ecx, eax
test ecx, ecx
jg 0x4f44e5
cmp edi, ebp
je 0x4f47c9
cmp ebx, dword [edi]
jb 0x4f47c9
mov ecx, dword [esi + 4]
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.004b9350
test eax, eax
je 0x4f4480
jmp 0x4f4548
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
add ebx, edx
push ecx
mov ecx, dword [esi + 4]
push ebx
call fcn.004b9350
test eax, eax
je 0x4f4480
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x4c], ecx
lea ecx, [esi + 0x68]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], edx
jne 0x4f459d
xor edx, edx
jmp 0x4f45b3
mov edx, dword [ecx + 8]
sub edx, eax
mov eax, 0x6572ec3
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
xor eax, eax
test edx, edx
jle 0x4f45cf
mov edi, dword [esi + 0x6c]
cmp dword [edi], ebx
je 0x4f4657
inc eax
add edi, 0x50c
cmp eax, edx
jl 0x4f45bc
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x74]
mov dword [esp + 0x34], edi
push edx
push 1
push eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebp
call fcn.004f51c0
inc edi
mov dword [esp + 0x20], edi
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x84]
lea ebx, [esi + 0x78]
sub edx, ecx
mov eax, 0x38e38e39
mov ebp, ecx
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4f4701
mov esi, dword [ebx + 4]
test esi, esi
je 0x4f464a
mov edx, ecx
mov eax, 0x38e38e39
sub edx, esi
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x4f464f
mov edi, 1
test esi, esi
jne 0x4f465d
xor edx, edx
jmp 0x4f4670
mov dword [esp + 0x34], eax
jmp 0x4f45fa
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea esi, [edx + edi]
test esi, esi
mov eax, esi
jge 0x4f467b
xor eax, eax
lea edx, [eax + eax*8]
shl edx, 2
push edx
call fcn.00514b36
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
mov ecx, ebx
push edi
push ebp
push eax
call fcn.004f5800
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.004f5840
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 8]
add edx, 0x24
mov ecx, ebx
push edx
push eax
push ebp
call fcn.004f5800
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.004e66d0
mov eax, dword [ebx + 4]
push eax
call fcn.00514120
lea ecx, [esi + esi*8]
add esp, 4
lea edx, [edi + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.004b8200
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebx + 4], edi
lea eax, [eax + eax*8]
lea ecx, [edi + eax*4]
mov dword [ebx + 8], ecx
jmp 0x4f47c9
mov edx, ecx
mov eax, 0x38e38e39
sub edx, ebp
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4f4772
lea edx, [ebp + 0x24]
push edx
push ecx
push ebp
mov ecx, ebx
call fcn.004f5800
mov edi, dword [ebx + 8]
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
sub ecx, ebp
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.004f5840
mov eax, dword [ebx + 8]
cmp ebp, eax
je 0x4f47c5
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4f475c
jmp 0x4f47c1
lea eax, [ecx - 0x24]
push ecx
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.004f5800
mov edx, dword [ebx + 8]
lea eax, [edx - 0x24]
cmp ebp, eax
je 0x4f47a6
sub eax, 0x24
sub edx, 0x24
mov ecx, 9
mov esi, eax
mov edi, edx
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4f478d
mov esi, dword [esp + 0x10]
lea eax, [ebp + 0x24]
cmp ebp, eax
je 0x4f47c5
mov edi, ebp
add ebp, 0x24
mov ecx, 9
lea esi, [esp + 0x2c]
cmp ebp, eax
rep movsd dword es:[edi], dword [esi]
jne 0x4f47ad
mov esi, dword [esp + 0x10]
add dword [ebx + 8], 0x24
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 0x24
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
jb 0x4f449f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x570
ret