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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f75c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5d8024]
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 0x4a46fb
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 0x4a4685
inc ecx
cmp ecx, edx
jl 0x4a4670
jmp 0x4a46fb
test eax, eax
je 0x4a46fb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.00520f01
push 0
push 0x2710
push 0
push esi
mov ebx, eax
mov edi, edx
call fcn.005223a0
sub ebx, eax
push 0
push 0x989680
sbb edi, edx
push edi
push ebx
call fcn.0053f680
mov esi, dword [ebp - 0x14]
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 4]
cmp dword [ecx - 4], 1
jle 0x4a46d9
push dword [ecx - 0xc]
lea ecx, [esi + 4]
call fcn.00408c90
mov ecx, dword [esi + 4]
push ecx
call fcn.0052b0b2
cdq
add esp, 4
cmp ebx, edx
jg 0x4a46f5
jl 0x4a46ed
cmp edi, eax
ja 0x4a46f5
or eax, 0xffffffff
jmp 0x4a5055
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 0x4a4724
nop dword [eax + eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 3
lea eax, [eax + ecx*8]
je 0x4a4947
inc ecx
cmp ecx, edx
jl 0x4a4710
mov ecx, ebx
call fcn.004a9450
push eax
lea ecx, [ebx + 0x30]
call fcn.004ac300
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.00478220
cmp byte [0x5de684], 0
je 0x4a4879
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a5089
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 0x4a47ae
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4794
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, 0x5de64c
push eax
call fcn.004c58e0
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 0x4a47dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5de684], 0
je 0x4a4879
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a5089
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 0x4a484a
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 0x4a4830
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, 0x5de64c
push eax
call fcn.004c58e0
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 0x4a4879
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.004b2b30
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.004923d0
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 0x4a48c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004ac830
mov dword [ebp - 0x24], eax
lea ecx, [ebx + 0x30]
test eax, eax
je 0x4a4a50
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.004a9330
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 0x4a493d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4a5055
test eax, eax
je 0x4a4724
add eax, 4
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.004a9450
mov ecx, dword [ebp - 0x20]
mov edx, eax
call fcn.0040d060
test al, al
je 0x4a4976
mov ecx, ebx
call fcn.004a83c0
jmp 0x4a5055
push dword [ebp - 0x20]
lea ecx, [ebx + 0x30]
call fcn.004ac300
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.004923d0
mov dword [ebp - 4], 0
mov ecx, 0x5de688
push eax
call fcn.00478220
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 0x4a49bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5de688]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4a49f1
lea esi, [edx - 1]
test esi, esi
js 0x4a5073
cmp esi, edx
jg 0x4a5073
cmp word [eax + esi*2], 0x5c
je 0x4a49f1
push 0x5c
mov ecx, 0x5de688
call fcn.00490c80
mov ecx, ebx
call fcn.004a9450
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.004a2bd0
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 0x4a4a3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
lea ecx, [ebx + 4]
call fcn.00478220
mov byte [ebp - 0x25], 1
jmp 0x4a4734
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x5975a0
mov dword [ebx + 0x264], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0x597820
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 0x4a4b30
push eax
mov ecx, ebx
call fcn.004a5140
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x1f4]
call fcn.0049ae90
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.004ac450
lea ecx, [ebx + 0x1f4]
call fcn.0049aa60
push eax
lea ecx, [ebx + 0x30]
call fcn.004b0860
lea eax, [ebx + 0x250]
push eax
lea ecx, [ebx + 0x10c]
call fcn.00478220
lea eax, [ebx + 0x23c]
mov ecx, ebx
push eax
call fcn.004a8330
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a4b30
mov eax, dword [edi]
cmp dword [eax + ecx*8], 0x1a
lea eax, [eax + ecx*8]
je 0x4a4b25
inc ecx
cmp ecx, edx
jl 0x4a4b13
jmp 0x4a4b30
test eax, eax
je 0x4a4b30
mov byte [ebx + 0x128], 1
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a4b6b
nop dword [eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 6
lea esi, [eax + ecx*8]
je 0x4a4b56
inc ecx
cmp ecx, edx
jl 0x4a4b40
mov esi, edi
xor ecx, ecx
jmp 0x4a4b75
test esi, esi
je 0x4a4b6b
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049a660
jmp 0x4a4bc6
mov eax, edx
xor ecx, ecx
mov esi, edi
test eax, eax
jle 0x4a4ba0
mov eax, dword [esi]
cmp dword [eax + ecx*8], 7
lea esi, [eax + ecx*8]
je 0x4a4b8b
inc ecx
mov esi, edi
cmp ecx, edx
jl 0x4a4b75
xor ecx, ecx
jmp 0x4a4ba6
test esi, esi
je 0x4a4ba0
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049a8a0
jmp 0x4a4bc6
xor ecx, ecx
test edx, edx
jle 0x4a4bbe
cmp ecx, edx
jge 0x4a507d
mov eax, dword [edi]
cmp dword [eax + ecx*8], 8
lea esi, [eax + ecx*8]
je 0x4a4bdd
inc ecx
cmp ecx, edx
jl 0x4a4bae
xor esi, esi
lea edi, [ebx + 0x1f4]
cmp byte [ebp + 8], 0
je 0x4a4bfb
mov dword [ebx + 0xc0], 3
xor esi, esi
jmp 0x4a5037
lea edi, [ebx + 0x1f4]
test esi, esi
je 0x4a4bc6
push 0
mov ecx, edi
call fcn.0049a660
push 0
mov ecx, edi
call fcn.0049a8a0
jmp 0x4a4bc6
mov ecx, edi
call fcn.0049a570
test al, al
mov byte [ebx + 0x1e8], al
mov ecx, ebx
sete byte [0x5d8bdc]
call fcn.004a52c0
call fcn.00409310
mov ecx, eax
test ecx, ecx
je 0x4a5089
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 0x4a4c50
movzx eax, ax
push eax
call fcn.00415200
jmp 0x4a4c5c
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.004aca50
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 0x4a4c9f
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 [0x5d91c0]
mov edx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x4a4cd6
mov edx, dword [0x5d91bc]
mov ecx, 0x5d91bc
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov dword [0x5d91c0], ecx
test edx, edx
je 0x4a4cfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d91c0]
cmp eax, 0xb7
jne 0x4a4cfd
push ecx
mov byte [0x5d91c4], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a4d55
cmp byte [0x5d91c4], 0
je 0x4a4d0f
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a4d55
test ecx, ecx
je 0x4a4d55
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x5d91b8
push 0x4bc750
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, dword [0x5d91cc]
je 0x4a4d55
mov edx, dword [0x5d91c8]
mov ecx, 0x5d91c8
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov dword [0x5d91cc], eax
test esi, esi
jne 0x4a4daf
cmp byte [0x5d91c4], 0
je 0x4a4daf
mov edx, 0xcc
mov dword [ebx + 0xc0], 3
lea ecx, [ebp - 0x24]
call fcn.004bb250
mov byte [ebp - 4], 0x1c
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.0049c940
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 0x4a4da5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4a501b
mov ecx, ebx
call fcn.004a6f50
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x178]
call fcn.004b2bd0
test byte [ebx + 0x74], 2
je 0x4a4e16
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x18], 0x594cf0
mov dword [ebp - 0x14], ebx
je 0x4a4df0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004a3c30
jmp 0x4a4e16
push ecx
lea ecx, [ebp - 0x18]
call fcn.00419740
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0xdc
call fcn.004b2bd0
lea eax, [ebp - 0x18]
push eax
call fcn.004b2e50
mov ecx, ebx
call fcn.004a5430
test al, al
je 0x4a4e28
xor esi, esi
jmp 0x4a501b
test byte [ebx + 0x74], 4
je 0x4a4e85
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x1c], 0x594cf8
mov dword [ebp - 0x18], ebx
je 0x4a4e4f
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004a3d50
jmp 0x4a4e75
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00419740
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x8a
call fcn.004b2bd0
lea eax, [ebp - 0x1c]
push eax
call fcn.004b2e50
cmp byte [ebp - 0x14], 0
je 0x4a4e85
mov esi, 1
jmp 0x4a501b
mov ecx, ebx
call fcn.004a5740
cmp byte [ebp - 0x25], 0
jne 0x4a4f0d
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4a4f0d
test eax, 0x2000
jne 0x4a4f0d
mov ecx, ebx
call fcn.004a9450
mov edx, eax
mov eax, dword [edx]
cmp dword [eax - 0xc], 3
jl 0x4a4f0d
cmp word [eax], 0x5c
jne 0x4a4ec5
cmp word [eax + 2], 0x5c
jne 0x4a4ec5
cmp word [eax + 4], 0x5c
jne 0x4a4f0d
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4a5073
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4a4ed0
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 0x4a4f0d
mov ecx, ebx
call fcn.004a83c0
mov esi, eax
jmp 0x4a501b
mov ecx, ebx
call fcn.004a57d0
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 0x4a4f7c
lea eax, [ebx + 0x204]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00478220
push 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.004b4150
add esp, 4
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.00478220
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 0x4a4f7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x184]
call fcn.004b27f0
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.004a5bd0
mov ecx, ebx
mov esi, eax
call fcn.004aa280
cmp byte [ebx + 0x1e8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], 0x594ce8
mov dword [ebp - 0x38], eax
je 0x4a4fd7
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004a3e50
jmp 0x4a4ffd
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00419740
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x10a
call fcn.004b2bd0
lea eax, [ebp - 0x3c]
push eax
call fcn.004b2e50
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 0x4a501b
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 0x4a5037
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.004ab7a0
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.00521781
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