Function at 0x4a4680
Capabilities:
Accept command line arguments
Create thread
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f0bc
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
lea edi, [ebx + 0x1c]
mov dword [ebp - 0x34], 0
mov edx, dword [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x24], edi
test edx, edx
jle 0x4a475b
nop word [eax + eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 0x1b
lea eax, [eax + ecx*8]
mov dword [ebp - 0x14], eax
je 0x4a46e5
inc ecx
cmp ecx, edx
jl 0x4a46d0
jmp 0x4a475b
test eax, eax
je 0x4a475b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.00520be1
push 0
push 0x2710
push 0
push esi
mov ebx, eax
mov edi, edx
call fcn.00522080
sub ebx, eax
push 0
push 0x989680
sbb edi, edx
push edi
push ebx
call fcn.0053efe0
mov esi, dword [ebp - 0x14]
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 4]
cmp dword [ecx - 4], 1
jle 0x4a4739
push dword [ecx - 0xc]
lea ecx, [esi + 4]
call fcn.00408c90
mov ecx, dword [esi + 4]
push ecx
call fcn.0052ad66
cdq
add esp, 4
cmp ebx, edx
jg 0x4a4755
jl 0x4a474d
cmp edi, eax
ja 0x4a4755
or eax, 0xffffffff
jmp 0x4a50b5
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov edx, dword [edi + 4]
xor ecx, ecx
or esi, 0xffffffff
mov byte [ebp - 0x25], 0
test edx, edx
jle 0x4a4784
nop dword [eax + eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 3
lea eax, [eax + ecx*8]
je 0x4a49a7
inc ecx
cmp ecx, edx
jl 0x4a4770
mov ecx, ebx
call fcn.004a93d0
push eax
lea ecx, [ebx + 0x30]
call fcn.004ac280
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.00478250
cmp byte [0x5dc4e4], 0
je 0x4a48d9
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a50e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x20]
push 0x12
push str.Full_command_line:
call fcn.00418fd0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x4a480e
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a47f4
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00418fd0
lea eax, [ebp - 0x20]
mov ecx, 0x5dc4ac
push eax
call fcn.004c5760
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a483d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5dc4e4], 0
je 0x4a48d9
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a50e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x20]
push 0x1c
push str.Command_line_to_pass_to_MSI:
call fcn.00418fd0
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4a48aa
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x14], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a4890
sub edx, dword [ebp - 0x14]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x20]
call fcn.00418fd0
lea eax, [ebp - 0x20]
mov ecx, 0x5dc4ac
push eax
call fcn.004c5760
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a48d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [ebx + 0x90]
lea ecx, [ebx + 0x178]
push esi
call fcn.004b2ab0
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.00492460
mov dword [ebp - 4], 0xe
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4926
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004ac7b0
mov dword [ebp - 0x24], eax
lea ecx, [ebx + 0x30]
test eax, eax
je 0x4a4ab0
mov dword [ebp - 4], 0x10
mov ecx, dword [ecx + 0xd4]
sub ecx, 0x10
call fcn.00408b20
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x34], 4
call fcn.004a92b0
mov eax, 4
mov dword [ebp - 0x34], eax
and eax, 0xfffffffb
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a499d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4a50b5
test eax, eax
je 0x4a4784
add eax, 4
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.004a93d0
mov ecx, dword [ebp - 0x20]
mov edx, eax
call fcn.0040d060
test al, al
je 0x4a49d6
mov ecx, ebx
call fcn.004a8330
jmp 0x4a50b5
push dword [ebp - 0x20]
lea ecx, [ebx + 0x30]
call fcn.004ac280
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00492460
mov dword [ebp - 4], 0
mov ecx, 0x5dc4e8
push eax
call fcn.00478250
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4a1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5dc4e8]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4a4a51
lea esi, [edx - 1]
test esi, esi
js 0x4a50d3
cmp esi, edx
jg 0x4a50d3
cmp word [eax + esi*2], 0x5c
je 0x4a4a51
push 0x5c
mov ecx, 0x5dc4e8
call fcn.00490cf0
mov ecx, ebx
call fcn.004a93d0
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.00415360
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x130]
call fcn.004a2c50
mov dword [ebp - 4], 0xffffffff
or esi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4a9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
lea ecx, [ebx + 4]
call fcn.00478250
mov byte [ebp - 0x25], 1
jmp 0x4a4794
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x595d4c
mov dword [ebx + 0x264], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0x595fcc
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0x15
test byte [ebx + 0x74], 2
je 0x4a4b90
push eax
mov ecx, ebx
call fcn.004a51a0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x1f4]
call fcn.0049af10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x24], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x15
lea ecx, [ebx + 0x30]
call fcn.004ac3d0
lea ecx, [ebx + 0x1f4]
call fcn.0049aaf0
push eax
lea ecx, [ebx + 0x30]
call fcn.004b07e0
lea eax, [ebx + 0x250]
push eax
lea ecx, [ebx + 0x10c]
call fcn.00478250
lea eax, [ebx + 0x23c]
mov ecx, ebx
push eax
call fcn.004a82a0
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a4b90
mov eax, dword [edi]
cmp dword [eax + ecx*8], 0x1a
lea eax, [eax + ecx*8]
je 0x4a4b85
inc ecx
cmp ecx, edx
jl 0x4a4b73
jmp 0x4a4b90
test eax, eax
je 0x4a4b90
mov byte [ebx + 0x128], 1
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a4bcb
nop dword [eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 6
lea esi, [eax + ecx*8]
je 0x4a4bb6
inc ecx
cmp ecx, edx
jl 0x4a4ba0
mov esi, edi
xor ecx, ecx
jmp 0x4a4bd5
test esi, esi
je 0x4a4bcb
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049a6f0
jmp 0x4a4c26
mov eax, edx
xor ecx, ecx
mov esi, edi
test eax, eax
jle 0x4a4c00
mov eax, dword [esi]
cmp dword [eax + ecx*8], 7
lea esi, [eax + ecx*8]
je 0x4a4beb
inc ecx
mov esi, edi
cmp ecx, edx
jl 0x4a4bd5
xor ecx, ecx
jmp 0x4a4c06
test esi, esi
je 0x4a4c00
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049a930
jmp 0x4a4c26
xor ecx, ecx
test edx, edx
jle 0x4a4c1e
cmp ecx, edx
jge 0x4a50dd
mov eax, dword [edi]
cmp dword [eax + ecx*8], 8
lea esi, [eax + ecx*8]
je 0x4a4c3d
inc ecx
cmp ecx, edx
jl 0x4a4c0e
xor esi, esi
lea edi, [ebx + 0x1f4]
cmp byte [ebp + 8], 0
je 0x4a4c5b
mov dword [ebx + 0xc0], 3
xor esi, esi
jmp 0x4a5097
lea edi, [ebx + 0x1f4]
test esi, esi
je 0x4a4c26
push 0
mov ecx, edi
call fcn.0049a6f0
push 0
mov ecx, edi
call fcn.0049a930
jmp 0x4a4c26
mov ecx, edi
call fcn.0049a600
test al, al
mov byte [ebx + 0x1e8], al
mov ecx, ebx
sete byte [0x5d6acc]
call fcn.004a5320
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a50e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x18
mov eax, str.Advinst_
lea ecx, [ebp - 0x30]
test eax, 0xffff0000
jne 0x4a4cb0
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4a4cbc
push 8
push str.Advinst_
call fcn.00408e90
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x30]
call fcn.004ac9d0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418fd0
mov byte [ebp - 4], 0x19
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4cff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x30]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x5d7028]
mov edx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x4a4d36
mov edx, dword [0x5d7024]
mov ecx, 0x5d7024
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov dword [0x5d7028], ecx
test edx, edx
je 0x4a4d5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d7028]
cmp eax, 0xb7
jne 0x4a4d5d
push ecx
mov byte [0x5d702c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a4db5
cmp byte [0x5d702c], 0
je 0x4a4d6f
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a4db5
test ecx, ecx
je 0x4a4db5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x5d7020
push 0x4bc6c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, dword [0x5d7034]
je 0x4a4db5
mov edx, dword [0x5d7030]
mov ecx, 0x5d7030
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov dword [0x5d7034], eax
test esi, esi
jne 0x4a4e0f
cmp byte [0x5d702c], 0
je 0x4a4e0f
mov edx, 0xcc
mov dword [ebx + 0xc0], 3
lea ecx, [ebp - 0x24]
call fcn.004bb1b0
mov byte [ebp - 4], 0x1c
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.0049c9c0
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4e05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4a507b
mov ecx, ebx
call fcn.004a6fb0
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x178]
call fcn.004b2b50
test byte [ebx + 0x74], 2
je 0x4a4e76
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x18], 0x593508
mov dword [ebp - 0x14], ebx
je 0x4a4e50
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004a3c90
jmp 0x4a4e76
push ecx
lea ecx, [ebp - 0x18]
call fcn.00419740
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0xdc
call fcn.004b2b50
lea eax, [ebp - 0x18]
push eax
call fcn.004b2dd0
mov ecx, ebx
call fcn.004a5490
test al, al
je 0x4a4e88
xor esi, esi
jmp 0x4a507b
test byte [ebx + 0x74], 4
je 0x4a4ee5
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x1c], 0x593510
mov dword [ebp - 0x18], ebx
je 0x4a4eaf
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004a3db0
jmp 0x4a4ed5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00419740
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x8a
call fcn.004b2b50
lea eax, [ebp - 0x1c]
push eax
call fcn.004b2dd0
cmp byte [ebp - 0x14], 0
je 0x4a4ee5
mov esi, 1
jmp 0x4a507b
mov ecx, ebx
call fcn.004a57a0
cmp byte [ebp - 0x25], 0
jne 0x4a4f6d
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4a4f6d
test eax, 0x2000
jne 0x4a4f6d
mov ecx, ebx
call fcn.004a93d0
mov edx, eax
mov eax, dword [edx]
cmp dword [eax - 0xc], 3
jl 0x4a4f6d
cmp word [eax], 0x5c
jne 0x4a4f25
cmp word [eax + 2], 0x5c
jne 0x4a4f25
cmp word [eax + 4], 0x5c
jne 0x4a4f6d
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4a50d3
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4a4f30
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4a4f6d
mov ecx, ebx
call fcn.004a8330
mov esi, eax
jmp 0x4a507b
mov ecx, ebx
call fcn.004a5830
mov ecx, dword [ebx + 0x28]
sub ecx, 0x10
call fcn.00408b20
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jne 0x4a4fdc
lea eax, [ebx + 0x204]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00478250
push 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.004b40c0
add esp, 4
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.00478250
mov byte [ebp - 4], 0x1f
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a4fdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x184]
call fcn.004b2770
mov eax, dword [ebx + 0x22c]
mov ecx, ebx
mov dword [ebx + 0xc0], eax
mov al, byte [ebx + 0x230]
mov byte [ebx + 0xc4], al
lea eax, [ebp - 0x2c]
push eax
call fcn.004a5c30
mov ecx, ebx
mov esi, eax
call fcn.004aa200
cmp byte [ebx + 0x1e8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], 0x593500
mov dword [ebp - 0x38], eax
je 0x4a5037
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004a3eb0
jmp 0x4a505d
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00419740
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x10a
call fcn.004b2b50
lea eax, [ebp - 0x3c]
push eax
call fcn.004b2dd0
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a507b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a5097
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004ab720
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00408fe0
push 1
push 0xc000008c
call fcn.00411080
push 0x80004005
call fcn.00408fe0
int3