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

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x2c]
movzx ecx, byte [ebx + 0x20]
mov eax, dword [ebx]
not ecx
and ecx, 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
push edi
mov eax, dword [eax]
add ecx, eax
add ecx, dword [esp + 0x44]
mov edi, dword [esi + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x4f1ba6
mov ebp, dword [esp + 0x3c]
sub ebp, eax
jmp 0x4f1bb1
mov eax, dword [esi + 0x2c]
lea ebp, [eax + 1]
add eax, ecx
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4f1bbf
inc eax
jmp 0x4f1bc2
mov eax, dword [ecx + 8]
dec dword [esi + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x18], eax
mov eax, ecx
neg eax
sbb al, al
and al, 4
or al, 1
movzx eax, al
push eax
push ecx
push ebp
push dword [ebx]
push esi
call fcn.00507d50
mov ecx, dword [esp + 0x2c]
add esp, 0x14
test ecx, ecx
je 0x4f1c0f
mov eax, dword [esp + 0x34]
add eax, ebp
push eax
push dword [ebx + 8]
push 0x7d
push edi
call fcn.0052e180
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp dword [esp + 0x48], 0
jne 0x4f1c35
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x4f1c35
push eax
mov eax, dword [esp + 0x38]
add eax, ebp
add eax, ecx
push eax
push dword [esp + 0x44]
push esi
call fcn.005091b0
add esp, 0x10
cmp dword [esp + 0x10], 0
jle 0x4f1e6d
push dword [esp + 0x20]
push ebp
push dword [esp + 0x40]
push ebx
push esi
call fcn.004e8b70
mov edx, dword [esi + 0x2c]
add esp, 0x14
mov ecx, dword [ebx + 4]
add ecx, edx
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x34]
lea eax, [edx + 1]
mov edx, ecx
mov dword [esp + 0x48], eax
sub edx, dword [ebx + 4]
mov eax, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x28], edx
test eax, eax
je 0x4f1c88
lea eax, [ecx + ebp]
push eax
push 0x14
jmp 0x4f1c8d
push dword [ebx + 8]
push 0x77
push edi
call fcn.0052e120
mov ecx, dword [edi + 0x74]
add esp, 0xc
mov edx, dword [ebx + 4]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x78], ecx
jg 0x4f1cb8
push edx
push ebp
push dword [esp + 0x50]
push 0x59
push edi
call fcn.004e2c80
add esp, 0x14
jmp 0x4f1ce7
mov esi, dword [esp + 0x48]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jns 0x4f1cf2
mov ecx, dword [edi + 0x74]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4f1d01
mov edx, 0x74c854
jmp 0x4f1d0a
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
mov eax, dword [esi]
mov dword [esp + 0x40], edx
cmp byte [eax + 0x57], 0
jne 0x4f1f53
mov ecx, dword [edx + 0x10]
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x44]
mov dword [edx + 8], eax
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
mov dword [esp + 0x50], ecx
call sub.MSVCRT.dll_memset
mov eax, dword [edi]
add esp, 0xc
cmp byte [eax + 0x57], 0
je 0x4f1d5b
push dword [esp + 0x44]
push 0xfffffffffffffff7
push eax
call fcn.004cfa50
mov eax, dword [esp + 0x50]
add esp, 0xc
jmp 0x4f1d90
mov eax, dword [edi + 0x74]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x4f1d85
push 0xfffffffffffffff7
push dword [esp + 0x48]
push ecx
push edi
call fcn.00547a80
mov eax, dword [esp + 0x54]
add esp, 0x10
jmp 0x4f1d90
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
movzx ecx, word [eax + 8]
movzx eax, word [eax + 6]
sub ecx, eax
dec ecx
push ecx
push dword [esp + 0x14]
push dword [ebx]
push esi
call fcn.00519e40
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x54], eax
inc eax
push eax
push 0
push eax
push 0x10
push edi
call fcn.0052e1e0
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push eax
push 0xc
push edi
call fcn.0052e180
push dword [ebx + 8]
push 0x91
push edi
call fcn.0052e120
mov eax, dword [esp + 0x5c]
add esp, 0x40
test eax, eax
je 0x4f1e0a
push dword [ebx + 0x18]
push eax
push 0x14
push edi
call fcn.0052e180
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x74]
test ecx, ecx
jns 0x4f1e18
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4f1e27
mov eax, 0x74c854
jmp 0x4f1e30
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
push dword [ebx + 4]
push dword [esp + 0x4c]
push ebp
push esi
call fcn.005091b0
mov ecx, dword [esp + 0x54]
add esp, 0x10
mov edx, dword [edi + 0x74]
test ecx, ecx
jns 0x4f1e52
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4f1e61
mov eax, 0x74c854
jmp 0x4f1e6a
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4f1ec4
mov eax, dword [edi + 0x74]
mov esi, dword [ebx + 8]
add eax, 4
push eax
push ecx
push 0x3b
push edi
call fcn.0052e180
push 0
push esi
push 0x22
push edi
call fcn.0052e180
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
sub eax, ecx
push eax
lea eax, [ecx + ebp]
push eax
push 0
push esi
push 0x27
push edi
call fcn.0052e310
push esi
push 0x81
push edi
mov dword [esp + 0x68], eax
call fcn.0052e120
mov esi, dword [esp + 0x74]
add esp, 0x44
cmp dword [esp + 0x14], 0
jne 0x4f1ee2
push dword [esp + 0x20]
push ebp
push dword [esp + 0x40]
push ebx
push esi
call fcn.004e8b70
add esp, 0x14
mov dword [esp + 0x14], eax
test byte [ebx + 0x20], 1
mov ecx, 0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
setne cl
sub eax, edx
add ecx, 0x89
push eax
lea eax, [edx + ebp]
push eax
push dword [esp + 0x1c]
push dword [ebx + 8]
push ecx
push edi
call fcn.0052e310
mov ecx, dword [esp + 0x3c]
add esp, 0x18
test ecx, ecx
je 0x4f1f53
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x4f1f26
mov edx, dword [edi + 0x74]
test ecx, ecx
jns 0x4f1f2e
mov ecx, dword [edi + 0x74]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4f1f46
pop edi
mov eax, 0x74c854
pop esi
pop ebp
pop ebx
mov dword [eax + 8], edx
add esp, 0x1c
ret
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret