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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x54]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x4f5d1b
jmp 0x4f5d28
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x4f5d30
jmp 0x4f5d38
jmp 0x4f5fda
xor eax, eax
push 0x4f5fb7
push ebp
push 0x414980
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov eax, 0x5ac83c
call fcn.0040cd60
test al, al
jne 0x4f5d71
jmp 0x4f5d90
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.00501350
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
jmp 0x4f5d9a
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 8]
mov edx, dword [edx]
call dword [edx + 0x314]
mov edx, dword [ebp - 0xc]
mov byte [edx + 0x14], al
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x80]
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 0x80]
mov ecx, dword [ecx]
call dword [ecx + 0x7c]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0xc]
lea edi, [eax + 0xb0]
lea esi, [edx + 0x60]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0xb0]
cmp eax, dword [edx + 0xb8]
je 0x4f5e27
jmp 0x4f5e60
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + 0xb4]
cmp eax, dword [edx + 0xbc]
je 0x4f5e3d
jmp 0x4f5e60
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
lea edx, [ebp - 0x54]
call fcn.00508e80
mov eax, dword [ebp - 0xc]
lea edi, [eax + 0xb0]
lea esi, [ebp - 0x54]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov esi, esi
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
mov dword [ecx + 0xc0], eax
mov eax, dword [edx + 0x78]
mov dword [ecx + 0xc4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
jne 0x4f5e89
jmp 0x4f5f08
cmp byte [ebp + 8], 0
jne 0x4f5e91
jmp 0x4f5f08
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0x1fffffff
mov dword [ebp - 0x48], 0x1fffffff
lea edi, [ebp - 0x30]
lea esi, [ebp - 0x54]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
call dword [ecx + 0x368]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x28]
mov eax, 0x1fffffff
sub eax, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, 0x1fffffff
sub eax, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x3c], eax
jmp 0x4f5f88
mov dword [ebp - 0x20], 0xffffffff
nop
mov eax, dword [ebp - 0x20]
lea eax, [eax + 1]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax + edx*4 + 0x30], 0
cmp dword [ebp - 0x20], 3
jae 0x4f5f2f
jmp 0x4f5f10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc0], 0
je 0x4f5f3d
jmp 0x4f5f88
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc4], 0
je 0x4f5f4b
jmp 0x4f5f88
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x214]
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + 0x214]
mov ecx, dword [ecx]
call dword [ecx + 0x160]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0xc0], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0xc4], eax
mov esi, esi
mov dword [ebp - 0x44], 1
cmp dword [ebp - 0xc], 0
jne 0x4f5f97
jmp 0x4f5fac
cmp dword [ebp - 8], 0
jne 0x4f5f9f
jmp 0x4f5fac
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x4f5fda
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4