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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov dword [esp + 0x10], edx
mov edx, ecx
push ebx
push esi
push edi
mov ebx, dword [edx]
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ebx
mov esi, dword [ebx + 8]
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0x78], ecx
jg 0x4f23c8
push 0
push 0
push 0
mov edx, 0x11
mov ecx, esi
call fcn.004845f0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x3c], eax
jmp 0x4f2400
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
nop dword [eax + eax]
push edi
mov ecx, ebx
call fcn.004e8ac0
dec dword [ebx + 0x38]
add esp, 4
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [ebx + 0x2c], eax
mov dword [edi + 0x34], eax
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0x38]
mov edi, 0xa
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x18]
movsx ecx, word [eax + 0x26]
mov eax, ecx
cdq
idiv edi
mov eax, edx
cdq
mov edi, eax
mov dword [esp + 0x34], edx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [esp + 0x34]
movzx ecx, cx
test edx, edx
jne 0x4f2482
cmp edi, 5
jae 0x4f2482
test edx, edx
jne 0x4f247d
cmp edi, 1
jb 0x4f2488
add edi, 0xffffffff
jmp 0x4f2485
add edi, 0xfffffffe
adc edx, 0xffffffff
cmp cx, 0x3c
jg 0x4f24da
add edi, 8
movsx eax, cx
adc edx, 0
cmp cx, 3
jl 0x4f24a9
lea ecx, [eax - 3]
mov eax, edi
call fcn.0055d210
jmp 0x4f24b7
mov ecx, 3
sub ecx, eax
mov eax, edi
call fcn.0055d230
mov edi, eax
test edx, edx
ja 0x4f24da
jb 0x4f24c7
cmp edi, 0x2710
jae 0x4f24ce
mov edi, 0x2710
jmp 0x4f24df
test edx, edx
jne 0x4f24da
cmp edi, 0x989680
jbe 0x4f24e7
mov edi, 0x989680
mov dword [esp + 0x44], 0
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0x28]
cmp dword [esi + 0x78], ecx
jg 0x4f2508
push 0
push edx
push edi
mov edx, 0x4c
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4f2533
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4c
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x78], ecx
jg 0x4f2560
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x26
mov ecx, esi
call fcn.004845f0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x4f2593
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x70]
mov eax, dword [eax + 0x64]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edi
cmp edi, eax
jae 0x4f260e
mov esi, eax
nop dword [eax + eax]
test byte [edi + 0xa], 2
mov eax, dword [edi]
jne 0x4f25ff
mov dword [esp + 0x50], fcn.0049dbe0
mov ecx, 3
mov word [esp + 0x60], cx
mov dword [esp + 0x54], 0x49dac0
mov dword [esp + 0x64], edx
test eax, eax
je 0x4f25ef
mov edx, eax
lea ecx, [esp + 0x4c]
call fcn.00497e80
cmp word [esp + 0x60], 0
mov eax, dword [edi]
je 0x4f25ff
push 0x10
push dword [esp + 0x3c]
push eax
push ebx
call fcn.004a4220
add esp, 0x10
mov edx, dword [esp + 0x10]
add edi, 0x30
cmp edi, esi
jb 0x4f25b0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0xc]
test dword [edi + 0x2c], 0x100
je 0x4f273b
mov al, byte [ebx + 0x13]
test al, al
jne 0x4f262e
inc dword [ebx + 0x2c]
mov edx, dword [ebx + 0x2c]
jmp 0x4f263d
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov edx, dword [ebx + eax*4 + 0x98]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x78], ecx
jg 0x4f2661
push 0
push edx
push dword [esp + 0x18]
mov edx, 0x86
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4f2694
mov ebx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x74]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
cmp dword [esi + 0x78], edx
jg 0x4f26c0
push dword [esp + 0x14]
mov edx, 0xb2
mov ecx, esi
push 0
push eax
call fcn.004845f0
add esp, 0xc
mov edx, eax
jmp 0x4f26f7
mov edi, dword [esp + 0x34]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0xc]
mov dword [eax + ecx*4], 0xb2
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x4f2712
mov eax, dword [esi + 0x70]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], 1
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4f28a6
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x4f28a6
movzx eax, al
mov dword [ebx + eax*4 + 0x98], ecx
inc byte [ebx + 0x13]
jmp 0x4f28a6
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x20]
mov ecx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], ecx
cmp ecx, 1
jne 0x4f2781
mov al, byte [ebx + 0x13]
test al, al
jne 0x4f276a
inc dword [ebx + 0x2c]
xor edi, edi
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x4f27ba
dec al
xor edi, edi
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x98]
mov dword [esp + 0x14], eax
jmp 0x4f27ba
mov edi, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x14], edx
cmp ecx, edi
jg 0x4f279c
lea eax, [edx + ecx]
sub edi, ecx
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], edi
jmp 0x4f27ab
mov eax, dword [ebx + 0x2c]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x14], edx
mov dword [ebx + 0x2c], eax
xor eax, eax
xor edi, edi
cmp ax, word [esp + 0x34]
jae 0x4f27f0
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
nop
lea eax, [edi + ebx]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov edx, dword [edx + 0xc]
movsx eax, word [eax + edi*2]
push eax
push dword [esp + 0x18]
call fcn.004a0f30
mov edx, dword [esp + 0x3c]
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x24]
jl 0x4f27c0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0x74]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x30], eax
cmp dword [esi + 0x78], edi
jg 0x4f281d
push edx
push 0
push eax
mov edx, 0xb2
mov ecx, esi
call fcn.004845f0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov edi, eax
jmp 0x4f2850
mov ebx, dword [esp + 0x30]
lea eax, [edi + 1]
mov dword [esi + 0x74], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xb2
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x4f286d
mov eax, dword [esi + 0x70]
lea ecx, [edi + edi*4]
mov edi, dword [esp + 0x24]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
jmp 0x4f2871
mov edi, dword [esp + 0x24]
cmp word [esp + 0x34], 1
jne 0x4f2897
test edx, edx
je 0x4f28a2
mov al, byte [ebx + 0x13]
mov edi, dword [esp + 0xc]
cmp al, 8
jae 0x4f28a6
movzx eax, al
mov dword [ebx + eax*4 + 0x98], edx
inc byte [ebx + 0x13]
jmp 0x4f28a6
cmp edi, dword [ebx + 0x1c]
jle 0x4f28a2
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edx
mov edi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4f28c4
push edx
mov edx, esi
call fcn.00484e10
add esp, 4
jmp 0x4f28cd
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x74]
inc edx
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
cmp dword [esi + 0x78], ecx
jg 0x4f28f9
push 0
push edx
push eax
mov edx, 5
mov ecx, esi
call fcn.004845f0
add esp, 0xc
jmp 0x4f292c
mov ebx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4f293e
mov eax, 0x5abde4
jmp 0x4f2953
mov ecx, dword [esp + 0x28]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
and dword [edi + 0x2c], 0xffbfffff
mov eax, dword [ebx]
test dword [eax + 0x50], 0x100000
jne 0x4f2a0e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
movzx eax, byte [edx + 0x30]
mov dword [esp + 0x34], eax
cmp ecx, eax
jge 0x4f2a05
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
add edx, 0x34c
mov esi, dword [esp + 0x34]
imul eax, ebx, 0x58
mov dword [esp + 0x38], ecx
add edx, eax
lea eax, [edx - 0x4c]
mov dword [ebp + 8], eax
movzx eax, byte [edx - 0x14]
lea eax, [eax + eax*8]
test byte [ecx + eax*8 + 0x2c], 8
jne 0x4f29e3
mov edi, dword [edx]
mov dword [esp + 0xc], edi
test edi, edi
je 0x4f29e3
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
and ecx, dword [edi]
and eax, dword [ebp + 0x10]
or ecx, eax
jne 0x4f29df
mov eax, dword [edi + 0x2c]
and eax, 0x400004
cmp eax, 0x400000
je 0x4f29ef
mov ecx, dword [esp + 0x38]
inc ebx
add edx, 0x58
mov dword [esp + 0x1c], ebx
cmp ebx, esi
jl 0x4f29a3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edi, dword [ebp + 8]
jl 0x4f2400
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4f2a26
mov dword [0x5abdec], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
lea eax, [edx - 1]
test ecx, ecx
pop edi
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
pop esi
pop ebx
mov dword [eax + ecx*4 + 8], edx
mov esp, ebp
pop ebp
ret