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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5235a4
sub esp, 0x84
mov eax, 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
test ecx, ecx
je 0x523593
mov ecx, dword [eax + 4]
cmp ecx, 2
jge 0x523571
mov ecx, dword [0xa7ceb4]
mov edx, dword [0xa7ceb0]
test edx, edx
jne 0x52355c
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov ecx, dword [0xa7c828]
lea edx, [esp + 0x74]
cmp edx, ecx
je 0x52323f
mov dword [esp + 0x2c], ecx
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
test ebx, ebx
jg 0x52350f
mov esi, ebx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ebx, esi
cmp ebx, esi
jle 0x523508
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], ebx
cmp edi, ebp
je 0x523219
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044d1e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax]
mov byte [esp + 0x74], al
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x523286
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.004ecad0
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
cmp ebx, ecx
jge 0x523302
mov dword [esp + 0x20], ebx
mov eax, dword [edx + ebx*4]
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov ecx, dword [0xa7c828]
mov dword [esp + 4], ecx
call fcn.004ed760
mov eax, dword [esp + 8]
test eax, eax
jg 0x523258
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1f
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x5232f5
lea eax, [0x79facf]
mov dword [edi], eax
lea eax, [0x7fe200]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x84
ret
lea eax, [0x79facf]
call fcn.0044c9e0
jmp 0x5232da
mov ecx, dword [eax]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x74]
mov dword [esp], ecx
call fcn.004ed760
mov eax, dword [esp + 8]
test eax, eax
je 0x52336f
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1b
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x523362
lea eax, [0x79d973]
mov dword [edi], eax
lea eax, [0x7fe200]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x84
ret
lea eax, [0x79d973]
call fcn.0044c9e0
jmp 0x523347
mov byte [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
call fcn.004ec0c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], eax
call fcn.004ecad0
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
xor edx, edx
jmp 0x523414
mov ebx, dword [esp + 0x20]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jge 0x5234eb
mov dword [esp + 0x20], edx
mov ecx, dword [eax + edx*4]
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea ebx, [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [0xa7c828]
mov dword [esp + 8], ecx
call fcn.004ec880
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
mov dword [esp], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004ed350
lea eax, [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [0xa7c828]
mov dword [esp + 4], ecx
call fcn.004ed760
mov eax, dword [esp + 8]
test eax, eax
je 0x523405
lea eax, [0x7436e0]
mov dword [esp], eax
call fcn.00409d00
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0xa8f2d0]
test eax, eax
jne 0x5234de
lea eax, [0x79ea68]
mov dword [edi], eax
lea eax, [0x7fe200]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x84
ret
lea eax, [0x79ea68]
call fcn.0044c9e0
jmp 0x5234c3
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x84
ret
mov esi, ebx
jmp 0x5231fa
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
lea eax, [0x7305c0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 8], eax
call fcn.00438a70
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x74]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
jmp 0x5231f2
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
add esp, 0x84
ret
cmp ecx, 0x7fffffff
jle 0x52358a
mov edx, dword [0xa7cea8]
mov ecx, dword [0xa7ceac]
jmp 0x52319e
xor ecx, ecx
xor edx, edx
jmp 0x52319e
mov ecx, dword [0xa7cebc]
mov edx, dword [0xa7ceb8]
jmp 0x52319e
call fcn.0044b280
jmp fcn.00523140