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

Disassembly:
mov ecx, dword [0x90eeac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5368ec
sub esp, 0x64
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.004b5580
mov dword [esp + 0x25], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
xor edx, edx
jmp 0x536744
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], esi
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00471df0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
lea edx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
cmp eax, edx
jle 0x536891
mov dword [esp + 0x40], edx
mov ebx, dword [ecx + edx*4]
test edx, edx
jle 0x5367de
mov ebp, dword [esp + 0x4c]
nop
nop
test ebp, ebp
je 0x536772
lea esi, [esp + 0x4c]
cmp ebp, esi
je 0x53677a
jmp 0x5368d3
lea ebp, [esp + 0x4c]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
inc esi
mov edi, dword [esp + 0x50]
cmp ebp, esi
jae 0x5367d5
mov dword [esp + 0x38], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x54], esi
mov byte [esi + edi - 1], 0x2e
lea eax, [esp + 0x25]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], ebx
sar ebx, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0xa
call fcn.004c22b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
nop
test eax, eax
je 0x53682b
lea ebx, [esp + 0x4c]
cmp eax, ebx
je 0x536833
jmp 0x5368bb
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
lea ebp, [ebx + edx]
mov esi, dword [esp + 0x50]
cmp eax, ebp
jae 0x5366ff
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], ebx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [0x676660]
mov dword [esp + 0x10], eax
call fcn.0046c350
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
jmp 0x5366ff
mov eax, dword [esp + 0x50]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x54]
cmp edx, eax
ja 0x5368ad
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
test ecx, ecx
je 0x5368b6
call fcn.00462160
call fcn.004621a0
lea eax, [0x6765e0]
mov dword [esp], eax
lea eax, [0x71cae0]
mov dword [esp + 4], eax
call fcn.0046ab50
lea eax, [0x6765e0]
mov dword [esp], eax
lea eax, [0x71cae0]
mov dword [esp + 4], eax
call fcn.0046ab50
nop
call fcn.00470060
jmp fcn.00536680