Function at 0x460c60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4efc64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [eax]
push ecx
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x24], ebx
call fcn.0049673f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x460cbe
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x460dbf
test esi, 0xffff0000
jne 0x460dc3
movzx esi, si
push esi
call fcn.0049e679
mov edi, eax
test edi, edi
je 0x460dd5
mov ecx, esi
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x460dd5
push esi
push eax
push edi
call fcn.004216c8
mov esi, eax
add esp, 0xc
test esi, esi
je 0x460dd5
mov eax, dword [ebx]
movzx edi, word [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x460d4b
push edi
mov ecx, ebx
call fcn.004214f2
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
movzx eax, word [esi]
add esi, 2
cmp eax, 0xffffffff
jne 0x460d65
push esi
call fcn.004a4d8a
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x18]
push edx
lea ecx, [edi + edi]
push esi
push ecx
push eax
mov dword [ebp - 0x1c], ecx
call fcn.004a4880
add esp, 0x10
cmp eax, 0x50
ja case.0x460d89.1
movzx ecx, byte [eax + 0x460eb4]
jmp dword [ecx*4 + 0x460ea4]
call fcn.00496ca7
call fcn.00496cdf
test edi, edi
jl 0x460db5
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x460db5
mov ecx, dword [ebp - 0x1c]
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x460dd5
push 0x80070057
call fcn.00421000
xor eax, eax
jmp 0x460dcc
push esi
call fcn.004a4d8a
add esp, 4
push eax
push esi
mov ecx, ebx
call fcn.00423edb
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00467c40
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
call fcn.00460f60
add esp, 0xc
push 0
push 0
mov bl, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00423f4c
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00423f4c
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00460780
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret