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

Disassembly:
push 0xffffffffffffffff
push 0x59b568
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4964]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 6], 0
mov edi, dword [esp + 0x7c]
je 0x50277c
cmp dword [edi + 0x24], 3
jne 0x50277c
mov eax, dword [edi + 0x20]
mov eax, dword [eax*4 + 0x5be910]
cmp eax, 9
je 0x50277c
cmp eax, 0xa
je 0x50277c
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push ecx
push edi
push edx
push eax
mov ecx, ebx
call fcn.004fd0f0
jmp 0x502abb
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x78]
xor ebp, ebp
mov dword [esp + 0x14], ebp
push edi
cmp eax, 3
jne 0x5027a1
mov edx, dword [ecx]
mov eax, dword [esp + 0x78]
mov edx, dword [edx + 0x14]
push eax
call edx
mov dword [esp + 0x14], eax
jmp 0x5027b9
mov eax, dword [ecx]
mov edx, dword [esp + 0x78]
mov eax, dword [eax + 0x10]
push edx
call eax
test al, al
je 0x5027b9
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x30]
call fcn.0051ad10
mov ecx, edi
mov dword [esp + 0x6c], ebp
call fcn.00510f60
test al, al
je 0x502887
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov eax, dword [esp + 0x74]
mov edx, dword [edx + 0x144]
push ebp
push 0xffffffffffffffff
push 0xa
push edi
push eax
call edx
mov esi, eax
mov eax, dword [esi + 0xc]
cmp eax, ebp
je 0x502800
lea ebp, [eax + 4]
lea ebx, [ebx]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x50280c
lea ecx, [eax + 4]
jmp 0x50280e
xor ecx, ecx
mov eax, dword [esi + 4]
lea eax, [ecx + eax*4]
cmp ebp, eax
je 0x502827
push ebp
lea ecx, [esp + 0x34]
call fcn.0051b600
add ebp, 4
jmp 0x502800
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov ebp, eax
cmp dword [esp + 0x3c], eax
jbe 0x502846
call fcn.0056adc1
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
cmp esi, eax
jbe 0x50285b
call fcn.0056adc1
mov eax, dword [esp + 0x30]
test eax, eax
je 0x502869
cmp eax, dword [esp + 0x20]
je 0x50286e
call fcn.0056adc1
cmp esi, ebp
je 0x502885
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ebp
push esi
call fcn.00501e80
add esp, 0x14
xor ebp, ebp
xor eax, eax
cmp dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jle 0x502a91
mov esi, dword [esp + 0x80]
cmp dword [edi + 0x24], 3
mov dword [esp + 0x80], eax
je 0x5028b6
mov dword [esp + 0x80], 0xffffffff
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
push esi
push edi
push ebp
push eax
mov ecx, ebx
call fcn.004fccb0
mov ecx, dword [edi + 0x20]
cmp dword [ecx*4 + 0x5be910], 0xa
jne 0x502ad1
mov edx, dword [ebx + 0x18]
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x24]
lea edi, [ebx + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x24], edx
call fcn.004fb9c0
mov edx, dword [edi + 0x18]
mov ebp, dword [esp + 0x20]
mov edi, dword [edi]
mov dword [esp + 0x2c], edx
test ebp, ebp
je 0x50290a
cmp ebp, edi
je 0x50290f
call fcn.0056adc1
mov edi, dword [esp + 0x24]
cmp edi, dword [esp + 0x2c]
jne 0x50291f
lea eax, [esp + 0x1c]
jmp 0x502935
test ebp, ebp
jne 0x50296d
call fcn.0056adc1
cmp edi, dword [ebp + 0x18]
jne 0x502932
call fcn.0056adc1
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x7c]
cmp dword [edi + 0x24], 3
mov ebp, dword [eax]
jne 0x50298d
mov ecx, edi
call fcn.00510f60
test al, al
je 0x502972
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
sar eax, 2
cmp edi, eax
jb 0x502964
call fcn.0056adc1
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + edi*4]
jmp 0x5029a0
mov ebp, dword [ebp]
jmp 0x502928
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov edx, dword [edx + 0xcc]
push eax
mov eax, dword [esp + 0x78]
push edi
push eax
call edx
jmp 0x5029a0
mov ecx, dword [esp + 0x78]
mov eax, dword [ecx]
mov edx, dword [esp + 0x74]
mov eax, dword [eax + 0x68]
push 0
push edi
push edx
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov edx, dword [edx + 0x30]
mov edi, eax
movzx eax, byte [ebx + 4]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call edx
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
mov byte [esp + 0x6c], 1
jb 0x5029d7
mov eax, dword [eax + 4]
jmp 0x5029da
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.004fb970
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x6c], 0
jb 0x5029fc
mov eax, dword [esp + 0x4c]
push eax
call fcn.0056a760
add esp, 4
push 2
push 0x5c90fc
lea ecx, [esi + 0x10]
call fcn.0040cab0
push esi
push edi
mov ecx, ebx
call fcn.00502d00
mov ecx, esi
call fcn.004fe700
movzx eax, byte [ebx + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
mov edx, dword [edx + 0x34]
push eax
mov eax, dword [esp + 0x84]
push ecx
push eax
push edi
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [eax + 0x14]
mov edi, 0x10
mov byte [esp + 0x6c], 2
cmp dword [eax + 0x18], edi
jb 0x502a54
mov eax, dword [eax + 4]
jmp 0x502a57
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.004fb970
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x60], edi
jb 0x502a78
mov eax, dword [esp + 0x4c]
push eax
call fcn.0056a760
add esp, 4
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jl 0x50289e
xor ebp, ebp
mov eax, dword [esp + 0x3c]
cmp eax, ebp
je 0x502aa2
push eax
call fcn.0056a760
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
call fcn.0056a760
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
push 2
push 0x5c8dfc
mov ecx, esi
call fcn.004fb970
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push esi
push ecx
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00502ec0
cmp byte [ebx + 4], 0
push 1
mov ecx, esi
je 0x502b0f
push 0x5c8e10
call fcn.004fb970
jmp 0x502a7c
push 0x5c8de0
call fcn.004fb970
jmp 0x502a7c