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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x518971
sub esp, 0xa8
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 4]
cmp eax, 0x3e8
jge 0x518941
mov dword [esp + 0x18], eax
lea ecx, [0x744a80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00439b00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], edx
lea ebx, [0x744a80]
mov dword [esp], ebx
mov ebp, dword [esp + 0x18]
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
call fcn.00439b00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0xc]
lea edi, [esp + 0x88]
mov ebx, eax
xor eax, eax
call fcn.0044d9b8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ebx
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x34], ecx
lea edx, [0x744a80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00439b00
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ebx, [0x744a80]
mov dword [esp], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.00439b00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x68]
mov ebx, eax
xor eax, eax
call fcn.0044d9b8
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + 4]
lea edx, [0x727f60]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00439b00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
lea edi, [esp + 0x48]
mov ebx, eax
xor eax, eax
call fcn.0044d9b8
lea eax, [0x51cf90]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], ecx
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov ecx, dword [esp + 0xac]
mov ecx, dword [ecx + 0xc]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
cmp ecx, ebx
jb 0x518901
jb 0x5188c5
mov eax, dword [esp + 0xac]
mov eax, dword [eax + 4]
lea ecx, [0x73fdc0]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00439b00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x3c], edx
jmp 0x518799
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0xa4]
mov ebp, dword [esp + 0xa0]
cmp ebx, ebp
jae 0x518820
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xa4]
cmp esi, ebx
jae 0x51895c
mov ebx, dword [ebp + esi*4]
lea ebp, [esi + 1]
mov dword [esp + 0xa4], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov ebx, dword [ebp]
mov edx, ebp
call ebx
movzx eax, byte [esp + 0x10]
test al, al
jne 0x51878d
mov eax, dword [0x9f3944]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [0x9f3944]
cmp eax, ecx
je 0x5188b0
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
xor ecx, ecx
jmp 0x518841
inc ecx
mov eax, dword [esp + 0x34]
cmp ecx, eax
jge 0x5188b0
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jae 0x518955
mov ebx, dword [esp + 0xac]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
lea esi, [ecx + ecx*2]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + esi*4]
mov eax, dword [edi + esi*4 + 4]
mov esi, dword [edi + esi*4 + 8]
cmp ecx, ebx
jae 0x518955
lea ebx, [ecx + ecx*8]
mov dword [ebp + ebx*4 + 0x10], eax
mov dword [ebp + ebx*4 + 0x14], esi
lea eax, [ebp + ebx*4 + 0xc]
mov esi, dword [0xa08230]
test esi, esi
jne 0x518896
mov dword [ebp + ebx*4 + 0xc], edx
jmp 0x51883c
mov dword [esp + 0x28], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040f250
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
jmp 0x51883c
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb0], eax
add esp, 0xa8
ret
mov ebx, dword [esp + 0xa0]
mov dword [ebp + ecx*4], ebx
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0xa0]
cmp esi, ebx
jae 0x518963
mov dword [ebp + esi*4], ecx
mov ecx, dword [esp + 0xa0]
inc ecx
mov dword [esp + 0xa0], ecx
jmp 0x518753
mov esi, dword [ebp + ecx*4]
mov edi, dword [esp + 0xa0]
cmp esi, edi
jae 0x51893d
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp esi, edi
jae 0x51896a
mov eax, dword [eax + esi*4]
cmp eax, ecx
sete al
test al, al
jne 0x518753
cmp ecx, ebx
mov eax, dword [esp + 0x38]
jmp 0x51874d
xor eax, eax
jmp 0x51892a
mov eax, dword [0x9f3944]
mov dword [esp + 0xb0], eax
add esp, 0xa8
ret
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.00426960
ud2
call fcn.0044be50
jmp fcn.00518510