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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x500e0a
sub esp, 0x9c
mov eax, dword [esp + 0xa0]
movzx ecx, byte [eax + 1]
test cl, cl
jne 0x500d83
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x500ade
movzx ecx, byte [eax]
test cl, cl
je 0x500abd
call fcn.0049d060
lea edi, [esp + 0x88]
lea esi, [esp]
call fcn.0046117e
mov eax, dword [esp + 0xa0]
lea ecx, [eax + 0xc]
mov dword [esp + 0x7c], ecx
mov dword [esp], ecx
call fcn.004f37f0
mov eax, dword [esp + 0xa0]
lea ecx, [eax + 0x58]
mov dword [esp], ecx
call fcn.00464f80
mov eax, dword [esp + 4]
test eax, eax
seta al
mov ecx, dword [esp + 8]
test ecx, ecx
setg cl
sete dl
and eax, edx
or eax, ecx
test al, al
je 0x5007d8
lea edi, [esp]
lea esi, [esp + 0x88]
call fcn.0046117e
call fcn.0049cb90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa0]
lea ebx, [edx + 0x60]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00464f50
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x20], edx
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x24], ecx
call fcn.0049d060
lea edi, [esp + 0x88]
lea esi, [esp]
call fcn.0046117e
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.004f2eb0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x500a89
lea edi, [esp]
lea esi, [esp + 0x88]
call fcn.0046117e
call fcn.0049cb90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa0]
lea ebx, [edx + 0x78]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00464f50
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], edx
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x20]
cmp edx, 0xffffffff
setne bl
mov ebp, dword [ecx + 0x24]
cmp ebp, 0xffffffff
mov esi, ecx
setne cl
or ecx, ebx
test cl, cl
je 0x5008f7
mov dword [esp + 0x38], edx
mov ebx, dword [eax + 4]
mov edi, dword [ebx + 0xbc]
test byte [edi], al
mov ecx, edi
mov edi, dword [ebx + 0xd0]
mov eax, edx
mul edi
imul ebp, edi
add edx, ebp
sar edi, 0x1f
mov ebp, dword [esp + 0x38]
imul ebp, edi
add edx, ebp
test edx, edx
jne 0x500d77
cmp eax, 0x7fffffff
jae 0x500d6d
mov edx, dword [ebx + 0xe8]
mov ebx, dword [esi + 0x30]
mov ebp, dword [esi + 0x34]
mov dword [esp], edx
mov dword [esp + 8], ebp
mov dword [esp + 4], ebx
add eax, ecx
mov dword [esp + 0xc], eax
call fcn.004f9870
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
movzx ecx, byte [ecx + 0x7a]
test cl, cl
je 0x500915
mov ecx, dword [eax + 8]
mov dword [ecx + 0x20], 0xffffffff
mov dword [ecx + 0x24], 0xffffffff
jmp 0x500938
mov dword [esp], eax
call fcn.00500e20
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x500a74
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [esp + 0x24]
cmp edx, ebx
seta dl
sete bl
mov ecx, dword [ecx + 0x28]
mov ebp, dword [esp + 0x20]
cmp ecx, ebp
xchg ebp, ebx
seta bl
xchg ebp, ebx
and ebx, ebp
or ebx, edx
test bl, bl
je 0x50098f
mov edx, dword [eax + 4]
add ecx, 1
imul ecx, dword [edx + 0xd0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004f8310
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x500a40
call fcn.0049d060
lea edi, [esp + 0x88]
lea esi, [esp]
call fcn.0046117e
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.00501590
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x500a0c
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
movzx ecx, byte [ecx + 0x78]
test cl, cl
je 0x500aff
nop
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00502030
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x500bf9
mov dword [esp + 0x78], ecx
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.005010d0
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa8], eax
add esp, 0x9c
ret
mov dword [esp + 0x6c], edx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.005010d0
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xa8], eax
add esp, 0x9c
ret
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
add esp, 0x9c
ret
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.005010d0
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
add esp, 0x9c
ret
mov eax, dword [0x629ff8]
mov ecx, dword [0x629ffc]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x9c
ret
mov eax, dword [0x629ff0]
mov ecx, dword [0x629ff4]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
add esp, 0x9c
ret
mov dword [esp], eax
call fcn.00501ab0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x500b7e
lea edi, [esp]
lea esi, [esp + 0x88]
call fcn.0046117e
call fcn.0049cb90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xa0]
lea ebx, [edx + 0x88]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call fcn.00464f50
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.00501220
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x74], ecx
mov eax, dword [eax + 0x94]
mov dword [esp + 0x34], eax
xor edx, edx
jmp 0x500bce
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
call fcn.005010d0
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xa8], eax
add esp, 0x9c
ret
mov dword [esp + 0x30], edx
mov eax, dword [ecx + edx*4]
mov ebx, dword [eax]
mov edx, eax
call ebx
mov eax, dword [esp + 0x30]
lea edx, [eax + 1]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x74]
cmp edx, eax
jl 0x500bb2
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
add esp, 0x9c
ret
mov eax, dword [esp + 0x5c]
mov ecx, edx
mov edx, ebx
mov ebx, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp], eax
lea ebp, [esp + 0x80]
mov dword [esp + 4], ebp
call fcn.00405520
mov eax, dword [esp + 0x80]
movzx ecx, byte [esp + 8]
mov edx, dword [esp + 0x84]
test cl, cl
je 0x500cd7
mov eax, dword [eax + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
inc edx
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x500c6c
mov ebp, dword [esp + 0x60]
jmp 0x500cb2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x517d40]
mov dword [esp + 0x10], eax
call fcn.00448ac0
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov ebp, ebx
mov ebx, eax
mov eax, dword [esp + 0x78]
lea esi, [ebp + edx*8 - 4]
mov dword [esi], ecx
lea edi, [ebp + edx*8 - 8]
mov ecx, dword [0x64f2f0]
test ecx, ecx
jne 0x500ccd
mov dword [edi], eax
jmp 0x500bef
call fcn.00460a90
jmp 0x500bef
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x500ceb
mov eax, dword [esp + 0xa0]
jmp 0x500aff
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [0x568e98]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.0046fa40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
lea edx, [0x5312f5]
mov dword [esp + 4], edx
mov dword [esp + 8], 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0044c480
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409160
mov eax, dword [esp + 8]
lea ecx, [0x517d40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435600
mov ecx, 0x7fffffff
call fcn.00460b20
mov esi, edx
mov ecx, 0x7fffffff
call fcn.00460bc0
lea eax, [esp + 0x3c]
mov dword [esp], eax
lea eax, [0x53305c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
lea eax, [0x5377f1]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x1d
call fcn.0044c480
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.004aeba0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409160
mov eax, dword [esp + 8]
lea ecx, [0x517d40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435600
nop
call fcn.0045f680
jmp fcn.00500700