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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x18]
cmp eax, dword [ecx + 8]
jbe 0x518b21
sub esp, 0x98
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x5185e1
mov ebp, dword [esp + 0x48]
inc ebp
mov ebx, eax
mov eax, ebp
mov ebp, dword [esp + 0xa0]
cmp ebp, eax
jle 0x518837
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x74], edx
mov ecx, dword [esp + 0x9c]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov dword [esp + 0x54], ebx
mov edx, dword [edx + 4]
mov dword [esp + 0x28], edx
mov dword [esp], ebx
mov dword [esp + 4], edx
lea ebp, [0x5463ac]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 2
call fcn.004ac150
mov eax, dword [esp + 0x10]
test eax, eax
jge 0x5186b9
mov eax, dword [esp + 0x40]
inc eax
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jb 0x518650
mov edx, dword [esp + 0x74]
jmp 0x518682
mov edx, dword [esp + 0x74]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x52a880]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [edx + eax*8 - 4]
mov ebp, dword [esp + 0x28]
mov dword [ebx], ebp
mov ebx, dword [0x6b2320]
lea ebp, [edx + eax*8 - 8]
test ebx, ebx
jne 0x5186a0
mov ebx, dword [esp + 0x54]
jmp 0x5186b1
call fcn.00468870
mov ebx, dword [esp + 0x54]
mov dword [edi], ebx
mov esi, dword [ebp]
mov dword [edi + 4], esi
mov dword [ebp], ebx
jmp 0x5185d8
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
call fcn.004b2ca0
mov eax, dword [esp + 8]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0049d600
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x518747
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov ebx, dword [esp + 0x28]
mov dword [esp + 4], ebx
call fcn.004b2ba0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
xor edx, edx
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x40]
jmp 0x51887c
mov ecx, ebx
mov eax, esi
mov edx, ebp
jmp 0x5185d8
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x5187b6
mov eax, dword [eax + 4]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x94], eax
lea eax, [0x54bcbb]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
add esp, 0x98
ret
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
add esp, 0x98
ret
mov edi, dword [esp + 0x44]
inc edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov esi, ebx
mov ebx, edx
mov edx, edi
mov edi, dword [esp + 0x2c]
cmp edx, edi
jge 0x51873c
mov dword [esp + 0x44], edx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x58]
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov dword [esp + 0x30], ebx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], ecx
mov ebp, dword [ebx + 0x14]
mov dword [esp], ecx
call ebp
movzx eax, byte [esp + 4]
test al, al
je 0x5188cb
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x6c]
jmp 0x518869
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x50]
mov dword [esp], edx
mov ebx, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.004b19d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x518a31
movzx eax, byte [esp + 0x10]
test al, al
jne 0x518929
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x6c]
jmp 0x518869
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x18]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004b31b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
cmp edx, ebx
jb 0x5189c4
mov ebp, dword [esp + 0x6c]
jmp 0x518a0a
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x52a880]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, ebx
mov ebx, eax
mov eax, dword [esp + 0x4c]
lea esi, [ebp + ebx*8 - 4]
mov dword [esi], ecx
mov ecx, dword [0x6b2320]
lea esi, [ebp + ebx*8 - 8]
test ecx, ecx
je 0x518a2a
call fcn.00468870
mov dword [edi], eax
mov ecx, dword [esi]
mov dword [edi + 4], ecx
mov dword [esi], eax
jmp 0x518869
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
call fcn.00409c10
mov eax, dword [esp + 8]
lea ecx, [0x52a880]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x518aa0
mov eax, dword [eax + 4]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x94], eax
lea eax, [0x54d6b7]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
lea eax, [esp + 0x88]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
add esp, 0x98
ret
call fcn.00467460
jmp fcn.005185b0