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

Disassembly:
sub esp, 0x60
mov eax, dword [0x4fe040]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x40]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x74]
push edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x54], ebp
call fcn.00460300
mov edx, dword [esp + 0x60]
add esp, 8
test edx, edx
je case.default.0x4606a1
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ecx
cmp ecx, 7
jne 0x46062e
mov ecx, dword [esp + 0x24]
inc eax
mov edi, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [ecx + 8], eax
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.00460300
mov eax, dword [esp + 0x2c]
add esp, 8
cmp dword [esp + 0x64], 3
mov dword [eax], edi
mov dword [eax + 8], esi
jne 0x460669
mov eax, dword [esp + 0x50]
mov ecx, 8
lea esi, [ecx - 7]
jmp 0x460639
cmp edx, 3
jne 0x46066d
mov esi, ebp
mov dword [esp + 0x2c], esi
test ebp, ebp
je case.default.0x4606a1
inc eax
dec ebx
mov dword [esp + 0x10], eax
mov edx, 1
mov dword [esp + 0x3c], ebx
test esi, esi
jne 0x46066f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004018ca
add esp, 0x60
ret
mov ecx, dword [esp + 0x14]
xor edx, edx
mov eax, dword [esp + 0x34]
lea edi, [ecx - 1]
mov dword [esp + 0x28], edi
lea eax, [eax + edx*4]
mov dword [esp + 0x40], eax
mov esi, dword [eax]
mov eax, dword [esp + 0x30]
push ebx
add esi, dword [eax + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.0046bd20
add esp, 8
cmp edi, 7
ja case.default.0x4606a1
jmp dword [edi*4 + 0x4609b4]
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0046b790
jmp 0x4606e4
push 0
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00462d90
add esp, 0xc
jmp 0x4606e7
push 3
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00462d90
add esp, 0xc
jmp 0x4606e7
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.00463090
add esp, 8
mov ecx, dword [esp + 0x30]
movzx ecx, byte [ecx + 0x14]
sub ecx, 1
je 0x46070b
sub ecx, 1
je 0x460703
sub ecx, 2
mov dword [esi], eax
jmp 0x460927
mov word [esi], ax
jmp 0x460927
mov byte [esi], al
jmp 0x460927
mov eax, dword [esp + 0x24]
mov edi, ebx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x10]
sub edi, eax
mov dword [esp + 0x1c], ecx
cmp eax, ebx
jae 0x460923
mov edx, dword [esp + 0x58]
cmp edx, 4
jne 0x460739
dec edi
jmp 0x460744
cmp edx, 2
jne case.default.0x4606a1
sub edi, edx
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi]
test eax, eax
je 0x460767
push eax
push ecx
call fcn.00401938
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [esi], 0
lea eax, [esp + 0x20]
push eax
lea eax, [edi + 1]
push eax
push ecx
call fcn.0040248c
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x460958
push edi
push dword [esp + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x28]
add esp, 0xc
mov byte [eax + edi], 0
mov dword [esi], eax
jmp 0x460923
push 0
lea eax, [esp + 0x60]
push eax
push 4
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0046b940
add esp, 0x14
cmp eax, 4
jl case.default.0x4606a1
push dword [esp + 0x5c]
call fcn.00401537
push dword [esp + 0x64]
mov dword [esi], eax
call fcn.00401537
push dword [esp + 0x6c]
mov dword [esi + 4], eax
call fcn.00401537
push dword [esp + 0x74]
mov dword [esi + 8], eax
call fcn.00401537
add esp, 0x10
mov dword [esi + 0xc], eax
jmp 0x460927
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push 0
mov ecx, dword [eax + 0x10]
lea eax, [ebp*4]
push eax
push 0
push 4
push ecx
mov dword [esp + 0x34], ecx
call fcn.004022e8
mov ecx, eax
add esp, 0x18
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x4609a1
xor edi, edi
mov esi, ecx
nop word [eax + eax]
push 0
push esi
push ebp
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0046b940
add esp, 0x14
test eax, eax
js 0x46096d
cmp eax, ebp
jb 0x46096d
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0046bd20
lea ecx, [ebp*4]
inc edi
add esp, 8
add esi, ecx
cmp edi, 4
jb 0x460840
test ebp, ebp
je 0x460913
mov edx, dword [esp + 0x18]
lea eax, [ebp*2]
add eax, ebp
mov dword [esp + 0x38], ebp
mov edi, edx
lea ebx, [edx + ebp*8]
lea eax, [edx + eax*4]
mov dword [esp + 0x44], eax
lea eax, [ecx + edx]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
sub eax, edx
mov dword [esp + 0x48], eax
nop dword [eax]
push dword [edi]
mov esi, dword [eax + edi]
call fcn.00401537
mov dword [esi], eax
mov eax, dword [esp + 0x18]
push dword [eax]
call fcn.00401537
mov dword [esi + 4], eax
push dword [ebx]
call fcn.00401537
mov dword [esi + 8], eax
push dword [ebp]
call fcn.00401537
add dword [esp + 0x24], 4
lea edi, [edi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
sub dword [esp + 0x38], 1
lea ebx, [ebx + 4]
mov eax, dword [esp + 0x48]
lea ebp, [ebp + 4]
jne 0x4608c0
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x4c]
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00401938
add esp, 8
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
dec ecx
add eax, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x460681
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004018ca
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004018ca
add esp, 0x60
ret
push dword [esp + 0x18]
mov dword [esp + 0x24], 3
push dword [esp + 0x20]
call fcn.00401938
mov eax, dword [esp + 0x28]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004018ca
add esp, 0x60
ret
mov eax, 3
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004018ca
add esp, 0x60
ret