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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5210fa
sub esp, 0x30
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
test eax, eax
je 0x520e8f
test ecx, ecx
je 0x520e8f
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x9c]
xor ebx, ebx
jmp 0x5210a8
mov eax, dword [0x79c1f0]
mov ecx, dword [esp + 0x9c]
cmp dword [0x79c1f4], ecx
jne 0x520ef0
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
je 0x520ee9
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x520edd
movzx eax, byte [esp + 0x3c]
mov byte [esp], al
call fcn.00521730
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x9c]
jmp 0x52100e
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x79c228]
cmp dword [0x79c22c], ecx
jne 0x520f5a
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
je 0x520f53
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x520f47
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
movzx edx, byte [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], dl
call fcn.00521250
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
jmp 0x52100e
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x79c218]
cmp dword [0x79c21c], ecx
jne 0x520fa6
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
je 0x520f9f
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x520f96
lea eax, [0x623250]
mov ecx, dword [esp + 0x9c]
jmp 0x52100e
mov ecx, dword [esp + 0x9c]
mov eax, dword [0x79c1c0]
cmp dword [0x79c1c4], ecx
jne 0x520ffd
mov edx, dword [esp + 0x98]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
je 0x520ff6
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x520fed
movzx eax, byte [esp + 0x3c]
mov byte [esp], al
call fcn.00521cb0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x9c]
jmp 0x52100e
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x52100e
lea eax, [0x62324c]
mov dword [esp + 0x28], eax
lea edx, [0x5e3520]
mov dword [esp], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call fcn.0040f750
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5210a3
mov edx, dword [esp + 0x90]
mov ebx, dword [edx + 4]
sub ebx, dword [edx + 0xc]
test ebx, ebx
jle 0x521093
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov dword [esp], edx
mov byte [esp + 4], 0x20
call fcn.00503550
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x90]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00503040
add esp, 0x30
ret
inc ebx
cmp ebx, ecx
jge 0x520e8f
lea ebp, [eax + ebx*8]
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
cmp edx, esi
jne 0x5210a7
mov dword [esp + 0x1c], ebx
mov dword [esp], ebp
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00402a50
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5210f6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x1c]
jmp 0x5210a7
add esp, 0x30
ret
call fcn.00462320
jmp fcn.00520e50