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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x523424
sub esp, 0x5c
mov byte [esp + 0x22], 0
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov edx, eax
jmp 0x5231be
mov ebx, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x7c]
cmp ebx, eax
jle 0x523402
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov byte [esp + 0x23], cl
lea ecx, [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.0051f940
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x523202
mov byte [esp + 0x22], 0
lea ecx, [eax - 1]
xor edx, edx
jmp 0x5231b8
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 8]
mov edi, esp
lea esi, [esp + 0x64]
call fcn.0045a83e
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
movzx eax, byte [esp + 0x55]
test al, al
je 0x5233c8
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp byte [esp + 0x22], 0x1e
ja 0x52340b
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
movzx eax, byte [esp + 0x22]
movzx ecx, byte [esp + 0x38]
add eax, ecx
mov byte [esp + 0x22], al
cmp al, 0x1e
jbe 0x523397
mov byte [esp + 0x22], 0
mov eax, 2
test eax, eax
jne 0x523364
movzx eax, byte [esp + 0x23]
cmp byte [esp + 0x56], al
jb 0x52334d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
movzx edx, byte [ecx + 4]
test dl, dl
je 0x523327
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
movzx edx, byte [esp + 0x51]
test dl, 0x10
jne 0x5232e5
movzx edx, byte [esp + 0x56]
movzx ebx, byte [esp + 0x55]
mov ebp, dword [esp + 0x24]
add ebx, ebp
mov ecx, eax
mov eax, ebx
jmp 0x5231b8
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jne 0x523314
movzx edx, byte [esp + 0x80]
test dl, dl
je 0x523310
mov dword [esp + 0x84], ecx
mov byte [esp + 0x88], 1
add esp, 0x5c
ret
mov ecx, eax
jmp 0x5232fd
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 0
add esp, 0x5c
ret
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
movzx edx, byte [esp + 0x49]
test dl, 4
je 0x5232cc
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jmp 0x5232ef
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 0
add esp, 0x5c
ret
cmp eax, 1
jne 0x523372
mov eax, dword [esp + 0x24]
jmp 0x5232a6
cmp eax, 2
je 0x523380
mov eax, dword [esp + 0x28]
jmp 0x5232a6
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 0
add esp, 0x5c
ret
test cl, cl
jne 0x5233c1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
movzx ecx, byte [esp + 0x41]
and ecx, 3
mov byte [esp + 0x22], cl
mov eax, 1
jmp 0x52328b
xor eax, eax
jmp 0x52328b
movzx eax, byte [esp + 0x80]
test al, al
je 0x5233eb
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 1
add esp, 0x5c
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 1
add esp, 0x5c
ret
mov ecx, ebx
mov eax, edx
jmp 0x5232ef
lea eax, [0x550cc0]
mov dword [esp], eax
lea eax, [0x5befa0]
mov dword [esp + 4], eax
call fcn.0042f8e0
nop
call fcn.00458ba0
jmp fcn.00523190