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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x522f74
sub esp, 0x54
mov eax, dword [esp + 0x5c]
test eax, 4
je 0x522c95
mov ecx, 8
mov edx, 1
mov ebx, 1
jmp 0x522cb9
test eax, 2
je 0x522cad
mov ecx, 4
mov edx, 2
mov ebx, 1
jmp 0x522cb9
mov ecx, 2
mov edx, 4
xor ebx, ebx
mov byte [esp + 0x27], bl
test eax, 8
je 0x522cca
shl ecx, 4
or edx, 0x20
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x58]
mov ebx, eax
sar eax, 0x1f
mov ebp, dword [esp + 0x68]
add ebp, ebx
mov edi, dword [esp + 0x6c]
adc eax, edi
mov ebx, dword [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
call fcn.00514540
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x522daf
test ecx, ecx
jne 0x522d2d
xor eax, eax
xor ecx, ecx
jmp 0x522d88
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], edx
lea eax, [0x67dde0]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x11
lea ecx, [0x6abf04]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [0x8ef4b0]
test ecx, ecx
jne 0x522d70
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
jmp 0x522d80
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.00463ab0
mov eax, ecx
mov ecx, eax
lea eax, [0x7108a4]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x54
ret
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
call fcn.00514b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x522e93
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00514450
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x522e19
xor eax, eax
xor ecx, ecx
jmp 0x522e6c
lea eax, [0x67dde0]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xd
lea ecx, [0x6a9a7b]
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [0x8ef4b0]
test ecx, ecx
jne 0x522e54
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
jmp 0x522e64
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x3c]
call fcn.00463ab0
mov eax, ecx
mov ecx, eax
lea eax, [0x7108a4]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
add esp, 0x54
ret
mov dword [esp + 0x34], eax
lea eax, [0x8ef160]
mov dword [esp], eax
call fcn.0046cf80
lea eax, [0x6848e0]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
movzx ecx, byte [esp + 0x27]
mov byte [eax + 8], cl
mov ecx, dword [0x8c7e40]
lea edx, [0x66f360]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call fcn.0040ea30
mov edi, dword [esp + 0xc]
test byte [edi], al
mov eax, dword [0x8ef4b0]
test eax, eax
jne 0x522f08
mov eax, dword [esp + 0x40]
mov dword [edi], eax
jmp 0x522f11
mov eax, dword [esp + 0x40]
call fcn.00463ab0
lea eax, [0x8ef160]
mov dword [esp], eax
call fcn.0046d300
lea eax, [0x8ef150]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x54
ret
call fcn.004626a0
jmp fcn.00522c60