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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x520c8e
sub esp, 0x60
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
call fcn.0049ab00
lea edi, [esp + 0x4c]
mov esi, esp
call fcn.0044c61e
mov eax, dword [esp + 0x64]
test byte [eax], al
mov dword [esp], eax
call fcn.00459900
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp], 4
lea ecx, [0x5ee028]
mov dword [esp + 4], ecx
call fcn.00425f10
test eax, eax
jne 0x520c76
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x10]
test ecx, 0x18
jne 0x520c11
xor ecx, ecx
xor edx, edx
mov ebx, edx
mov dword [esp + 0x3c], ecx
mov dword [eax + 0x20], 0
lea ebp, [eax + 0x1c]
mov dword [esp + 0x48], ebp
mov dword [esp + 4], ebp
mov dword [esp], eax
lea edi, [esp + 8]
lea esi, [esp + 0x4c]
call fcn.0044c61e
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
call fcn.0051fef0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x70]
lea ebx, [ecx + edx]
mov dword [esp + 0x38], ebx
mov ebp, dword [eax + 0x24]
mov esi, eax
mov eax, dword [eax + 0x1c]
cmp ebx, ebp
ja 0x520bd2
cmp ebx, ebp
ja 0x520c87
mov dword [esp + 0x34], ebp
mov dword [esp + 0x44], eax
add ecx, eax
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0044c840
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x24], eax
mov eax, dword [0x7016d0]
test eax, eax
jne 0x520bb1
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x1c], eax
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x520b8f
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx + 1]
cmp ebp, edx
jg 0x520b20
lea edx, [ebx + 1]
mov dword [ecx + 0x20], edx
mov byte [eax + ebx], 0xa
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x14]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp], edx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
nop
call fcn.00426700
add esp, 0x60
ret
lea ecx, [0x5a5e80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
call fcn.00438c30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x64]
mov dword [ebx + 0x24], edx
mov edx, dword [0x7016d0]
test edx, edx
jne 0x520b69
mov dword [ebx + 0x1c], eax
mov edx, ecx
mov ecx, ebx
mov ebx, edx
jmp 0x520ad9
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040ef10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
jmp 0x520b5e
lea ebx, [edx - 1]
cmp ebx, edx
jae 0x520c80
mov ebx, dword [esp + 0x6c]
movzx edx, byte [edx + ebx - 1]
cmp dl, 0xa
jne 0x520acc
jmp 0x520ae3
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
call fcn.0040ef10
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
jmp 0x520ac0
mov dword [esp + 0x34], ecx
lea edx, [0x5a5e80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00438c30
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
jmp 0x520a73
mov dword [esp], eax
call fcn.00459c00
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00405d80
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test cl, cl
je 0x520c67
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
call fcn.00459900
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jmp 0x520a16
lea ebx, [0x5db6c8]
mov edx, 3
xor eax, eax
jmp 0x520c3a
nop
call fcn.00426700
add esp, 0x60
ret
call fcn.00425c90
ud2
call fcn.00425cf0
ud2
call fcn.0044a520
jmp fcn.00520990