Function at 0x515a50
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 0x51609e
sub esp, 0x84
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.005155c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x515a9d
mov ecx, dword [esp + 0x88]
jmp 0x515ac2
mov ecx, dword [0x68ad40]
test ecx, ecx
jne 0x515ab3
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0x20], eax
jmp 0x515ac2
mov ecx, dword [esp + 0x88]
lea edi, [ecx + 0x20]
call fcn.0045c980
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005155c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x515ae9
mov ecx, dword [esp + 0x88]
jmp 0x515b0e
mov ecx, dword [0x68ad40]
test ecx, ecx
jne 0x515aff
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0x1c], eax
jmp 0x515b0e
mov ecx, dword [esp + 0x88]
lea edi, [ecx + 0x1c]
call fcn.0045c980
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [0x54de89]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.0046c870
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x515b65
mov ebx, dword [esp + 0x3c]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x516081
mov dword [esp + 0x3c], edx
lea ecx, [eax + edx*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0046d890
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046d3a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
jne 0x515bb4
mov ecx, dword [esp + 0x88]
lea esi, [0x587bd4]
jmp 0x515b56
cmp eax, 1
jne 0x515bc2
cmp byte [ecx], 0x2a
je 0x515fdc
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004d9600
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x515c87
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x28]
lea ebx, [edx + 1]
mov ebp, dword [ecx + 0x24]
mov esi, dword [ecx + 0x2c]
cmp esi, ebx
jae 0x515c56
mov dword [esp + 0x4c], eax
lea eax, [0x535300]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
call fcn.004464a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x2c], edx
mov edx, dword [0x68ad40]
test edx, edx
jne 0x515c44
mov dword [ebx + 0x24], eax
jmp 0x515c4c
lea edi, [ebx + 0x24]
call fcn.0045c980
mov edx, ecx
mov ebp, eax
mov eax, dword [esp + 0x4c]
mov ecx, ebx
lea ebx, [edx + 1]
mov dword [ecx + 0x28], ebx
lea ebx, [ebp + edx*8]
lea esi, [0x587bd4]
mov dword [ebx], esi
mov ebx, dword [0x68ad40]
lea edi, [ebp + edx*8 + 4]
test ebx, ebx
jne 0x515c7d
mov dword [edi], eax
jmp 0x515b56
call fcn.0045c980
jmp 0x515b56
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.004da8a0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x30], ebp
test eax, eax
jne 0x515d00
test ecx, ecx
jne 0x515cd1
mov ecx, dword [esp + 0x88]
lea esi, [0x587bd4]
jmp 0x515b56
cmp byte [edx], 0x5b
jne 0x515cfc
lea esi, [ecx + edx - 1]
cmp byte [esi], 0x5d
jne 0x515cfc
lea esi, [ecx - 1]
cmp esi, 1
jb 0x516091
add ecx, 0xfffffffe
mov eax, ecx
neg ecx
sar ecx, 0x1f
and ecx, 1
add edx, ecx
jmp 0x515d08
mov eax, ecx
jmp 0x515d08
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004d9440
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x515edd
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x515d4a
mov ecx, dword [esp + 0x88]
lea esi, [0x587bd4]
jmp 0x515b56
cmp edx, 2
jge 0x515d53
xor eax, eax
jmp 0x515d7a
mov eax, dword [esp + 0x44]
mov dword [esp], eax
lea ecx, [0x54deb3]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
call fcn.00402580
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x2c]
test al, al
je 0x515d95
lea eax, [edx - 1]
mov ebx, eax
neg eax
sar eax, 0x1f
and eax, 1
mov ebp, dword [esp + 0x44]
lea edx, [ebp + eax]
jmp 0x515d9b
mov ebx, edx
mov edx, dword [esp + 0x44]
test ebx, ebx
jbe 0x516088
movzx ecx, byte [edx]
cmp cl, 0x2e
je 0x515de5
mov byte [esp + 0x27], cl
mov dword [esp], 0
lea eax, [0x54de8b]
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00449750
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
movzx eax, byte [esp + 0x27]
cmp al, 0x2e
lea edi, [esp + 0x5c]
mov eax, 0
call fcn.0045cbcb
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x68], ecx
setne cl
mov byte [esp + 0x6c], cl
lea ecx, [0x587be8]
mov dword [esp], ecx
lea edx, [esp + 0x5c]
mov dword [esp + 4], edx
call fcn.00408cc0
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x34]
mov eax, dword [esp + 0xc]
mov ebx, dword [ecx + 0x30]
mov ebp, dword [ecx + 0x38]
mov esi, dword [esp + 8]
mov edi, esi
lea esi, [edx + 1]
cmp ebp, esi
jae 0x515eaf
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edi
lea eax, [0x535300]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.004464a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x38], edx
mov edx, dword [0x68ad40]
test edx, edx
jne 0x515e94
mov dword [ebx + 0x30], eax
jmp 0x515e9c
lea edi, [ebx + 0x30]
call fcn.0045c980
mov edi, dword [esp + 0x54]
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x88]
lea ebp, [edx + 1]
mov dword [ecx + 0x34], ebp
lea ebp, [ebx + edx*8]
mov dword [ebp], edi
mov ebp, dword [0x68ad40]
lea edi, [ebx + edx*8 + 4]
test ebp, ebp
jne 0x515ecd
mov dword [edi], eax
jmp 0x515ed2
call fcn.0045c980
lea esi, [0x587bd4]
jmp 0x515b56
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x70]
mov ebx, eax
xor eax, eax
call fcn.0045cbcb
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x80], ecx
lea ecx, [0x587bfc]
mov dword [esp], ecx
lea edx, [esp + 0x70]
mov dword [esp + 4], edx
call fcn.00408cc0
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0xc]
mov ebx, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x2c]
mov esi, dword [esp + 8]
mov edi, esi
lea esi, [edx + 1]
cmp ebp, esi
jae 0x515fae
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], eax
lea eax, [0x535300]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
call fcn.004464a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x2c], edx
mov edx, dword [0x68ad40]
test edx, edx
jne 0x515f93
mov dword [ebx + 0x24], eax
jmp 0x515f9b
lea edi, [ebx + 0x24]
call fcn.0045c980
mov edi, dword [esp + 0x58]
mov edx, ecx
mov ebx, eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x88]
lea ebp, [edx + 1]
mov dword [ecx + 0x28], ebp
lea ebp, [ebx + edx*8]
mov dword [ebp], edi
mov ebp, dword [0x68ad40]
lea edi, [ebx + edx*8 + 4]
test ebp, ebp
jne 0x515fcc
mov dword [edi], eax
jmp 0x515fd1
call fcn.0045c980
lea esi, [0x587bd4]
jmp 0x515b56
lea eax, [0x52e900]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
lea ecx, [0x587bc0]
mov dword [eax], ecx
lea edx, [0x68aba0]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 1
mov ebp, dword [0x68ad40]
test ebp, ebp
jne 0x516023
mov dword [ebx + 0x24], eax
jmp 0x51602b
lea edi, [ebx + 0x24]
call fcn.0045c980
lea eax, [0x52e900]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
lea ecx, [0x587bc0]
mov dword [eax], ecx
lea ecx, [0x68aba0]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x88]
mov dword [ecx + 0x34], 1
mov dword [ecx + 0x38], 1
mov edx, dword [0x68ad40]
test edx, edx
jne 0x516072
mov dword [ecx + 0x30], eax
jmp 0x51607a
lea edi, [ecx + 0x30]
call fcn.0045c980
add esp, 0x84
ret
add esp, 0x84
ret
xor eax, eax
mov ecx, ebx
call fcn.0045ca00
mov eax, 1
mov ecx, esi
call fcn.0045ca60
nop
call fcn.0045b540
jmp fcn.00515a50