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

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x34]
mov ebx, dword [esi]
movzx eax, byte [esi + 0x97]
mov dword [esp + 0x24], eax
mov dword [esp + 8], ebx
mov eax, dword [ebx + 0x20]
and eax, 0x4000
or eax, 0
je 0x4f2da4
push ebp
mov ebp, dword [esp + 0x3c]
cmp byte [ebp + 0x2b], 0
jne 0x4f2da3
mov ecx, dword [ebp + 0x3c]
mov edx, 0xffff8000
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x4f28bc
mov eax, dword [ebx + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x10], edx
cmp dword [eax], ecx
je 0x4f28bc
lea ebx, [ebx]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4f28b0
mov dword [esp + 0x10], edx
mov eax, dword [ebx + 0x10]
mov ecx, edx
mov edx, dword [esp + 0x48]
shl ecx, 4
push edi
mov edi, dword [ebp + 0x30]
mov dword [esp + 0x34], ecx
mov eax, dword [ecx + eax]
mov dword [esp + 0x28], eax
test edi, edi
je 0x4f2bd7
nop
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test edx, edx
je 0x4f293d
mov ecx, dword [ebp]
mov eax, dword [edi + 8]
test ecx, ecx
jne 0x4f290c
neg eax
sbb eax, eax
jmp 0x4f291e
test eax, eax
je 0x4f2922
push eax
push ecx
call fcn.0050e440
mov edx, dword [esp + 0x54]
add esp, 8
test eax, eax
je 0x4f2939
push dword [esp + 0x50]
push edx
push edi
push ebp
call fcn.004b2c90
add esp, 0x10
test eax, eax
je 0x4f2bc4
mov eax, dword [esp + 0x28]
cmp byte [esi + 0x97], 0
push eax
push dword [edi + 8]
je 0x4f2955
push ebx
call fcn.004f1cb0
add esp, 0xc
jmp 0x4f2960
push 0
push esi
call fcn.004ffbb0
add esp, 0x10
mov ebp, eax
test ebp, ebp
je 0x4f2ad7
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push ebp
push esi
call fcn.004f3470
add esp, 0x14
test eax, eax
jne 0x4f2ad7
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f2997
mov ecx, eax
mov dword [esp + 0x1c], eax
jmp 0x4f29a6
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x4f2a14
lea ecx, [ecx]
mov eax, dword [esp + 0x40]
movsx eax, word [eax + 0x20]
cmp dword [ecx + ebx*4], eax
jne 0x4f29c4
mov dword [ecx + ebx*4], 0xffffffff
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x168], 0
je 0x4f2a0e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f29e2
mov eax, dword [eax + 4]
movsx ecx, word [eax + ebx*2]
jmp 0x4f29e6
movsx ecx, word [ebp + 0x20]
mov eax, dword [ebp + 4]
add ecx, ecx
push dword [esp + 0x14]
push dword [eax + ecx*8]
push dword [ebp]
push esi
call fcn.004e0540
xor ecx, ecx
add esp, 0x10
cmp eax, 2
sete cl
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x4f29b0
mov ecx, dword [esp + 0x14]
cmp ecx, 1
je 0x4f2a46
mov eax, dword [esi]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 4]
cmp byte [eax + 9], 0
je 0x4f2a46
push dword [ebp]
push 0
push dword [ebp + 0x14]
push ecx
push esi
call fcn.004cc4e0
mov ecx, dword [esp + 0x28]
add esp, 0x14
inc dword [esi + 0x28]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x4f2a6d
push dword [esp + 0x20]
push 0xffffffffffffffff
push eax
push dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push esi
call fcn.004b2cf0
add esp, 0x24
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4f2ab8
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x4f2a7e
mov eax, esi
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x4f2a9d
mov eax, dword [eax]
cmp eax, dword [edi + 0x1c]
jne 0x4f2a92
cmp byte [edi + 0x19], 8
je 0x4f2ab8
cmp eax, dword [edi + 0x20]
jne 0x4f2a9d
cmp byte [edi + 0x1a], 8
je 0x4f2ab8
push dword [esp + 0x20]
push 1
push ecx
push dword [esp + 0x28]
push edi
push ebx
push ebp
push dword [esp + 0x30]
push esi
call fcn.004b2cf0
add esp, 0x24
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
test eax, eax
je 0x4f2bc0
push eax
push ebx
call fcn.004e9770
add esp, 8
jmp 0x4f2bc0
cmp dword [esp + 0x2c], 0
je 0x4f2da2
cmp byte [ebx + 0x57], 0
jne 0x4f2da2
test ebp, ebp
jne 0x4f2bc0
mov ebx, dword [esi + 8]
test ebx, ebx
jne 0x4f2b17
cmp dword [esi + 0x74], ebx
jne 0x4f2b0c
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x4f2b0c
mov byte [esi + 0x17], 1
push esi
call fcn.005137c0
add esp, 4
mov ebx, eax
mov eax, dword [ebx + 0x74]
mov edx, dword [edi + 0x14]
inc eax
add eax, edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
test edx, edx
jle 0x4f2b6c
mov esi, dword [esp + 0x24]
lea ebp, [edi + 0x24]
push eax
movzx eax, word [ebp]
push eax
push dword [edi]
call fcn.0050e7a0
mov ecx, dword [esp + 0x50]
add esp, 8
cwde
inc ecx
add eax, ecx
push eax
push 0x32
push ebx
call fcn.00512d40
mov eax, dword [esp + 0x30]
lea ebp, [ebp + 8]
inc esi
add esp, 0x10
cmp esi, dword [edi + 0x14]
jl 0x4f2b37
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x74]
movzx edx, byte [edi + 0x18]
cmp dword [ebx + 0x78], ecx
jg 0x4f2b8d
push 0
push 0xffffffffffffffff
push edx
push 0x9d
push ebx
call fcn.004c7840
add esp, 0x14
jmp 0x4f2bbc
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x9d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
test edi, edi
jne 0x4f28e0
mov eax, dword [ebp + 0x3c]
push 0
push dword [ebp]
add eax, 0x38
push eax
call fcn.004b2240
add esp, 0xc
mov edi, dword [eax + 8]
test edi, edi
je 0x4f2da2
jmp 0x4f2c00
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
test eax, eax
je 0x4f2c2f
push dword [esp + 0x50]
push eax
push edi
push ebp
call fcn.004b3770
add esp, 0x10
test eax, eax
je 0x4f2d93
cmp byte [edi + 0x18], 0
jne 0x4f2c50
mov eax, dword [ebx + 0x20]
and eax, 0x80000
or eax, 0
jne 0x4f2c50
cmp dword [esi + 0x74], eax
jne 0x4f2c50
cmp byte [esi + 0x14], al
je 0x4f2d93
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push ebp
push esi
call fcn.004f3470
add esp, 0x14
test eax, eax
je 0x4f2c83
cmp dword [esp + 0x2c], 0
je 0x4f2da2
cmp byte [ebx + 0x57], 0
jne 0x4f2da2
jmp 0x4f2d93
push 0
push 0x50
push dword [esi]
call fcn.004e9850
mov ebp, dword [esp + 0x34]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4f2d7d
push 0x48
lea eax, [ebx + 8]
mov dword [ebx + 4], 1
push 0
push eax
mov dword [ebx], 1
call sub.MSVCRT.dll_memset
mov dword [ebx + 0x34], 0xffffffff
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*8]
mov dword [ebx + eax*8 - 0x38], 0
mov dword [ebx + eax*8 - 0x3c], 0
mov eax, dword [edi]
mov dword [ebx + 0x18], eax
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x18]
inc dword [eax + 0x18]
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x34], eax
inc dword [esi + 0x28]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4f2d17
push 0xffffffffffffffff
push eax
push ebp
push edi
push ecx
push dword [esp + 0x54]
push ebx
push esi
call fcn.004b3860
mov ecx, dword [esp + 0x5c]
add esp, 0x20
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4f2d66
push 1
push edx
push ebp
xor eax, eax
cmp dword [esp + 0x58], eax
push edi
push ecx
push dword [esp + 0x54]
setne al
push ebx
push esi
movzx eax, byte [eax + edi + 0x19]
mov dword [esp + 0x5c], eax
call fcn.004b3860
add esp, 0x20
cmp byte [edi + 0x18], 0
jne 0x4f2d66
mov eax, dword [esp + 0x3c]
cmp eax, 0xa
je 0x4f2d66
cmp eax, 8
je 0x4f2d66
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x4f2d62
mov eax, esi
mov byte [eax + 0x15], 1
mov dword [ebx + 0x10], 0
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call fcn.0050d420
add esp, 8
jmp 0x4f2d81
mov ebx, dword [esp + 0x10]
test ebp, ebp
je 0x4f2d8f
push ebp
push ebx
call fcn.004e9770
add esp, 8
mov ebp, dword [esp + 0x40]
mov edi, dword [edi + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
jne 0x4f2c00
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret