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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56da1c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5e8024]
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 0x4ac03b
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 0x4abfc5
inc ecx
cmp ecx, edx
jl 0x4abfb0
jmp 0x4ac03b
test eax, eax
je 0x4ac03b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.0052d90d
push 0
push 0x2710
push 0
push esi
mov ebx, eax
mov edi, edx
call fcn.0052ec00
sub ebx, eax
push 0
push 0x989680
sbb edi, edx
push edi
push ebx
call fcn.0054d7d0
mov esi, dword [ebp - 0x14]
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 4]
cmp dword [ecx - 4], 1
jle 0x4ac019
push dword [ecx - 0xc]
lea ecx, [esi + 4]
call fcn.004096b0
mov ecx, dword [esi + 4]
push ecx
call fcn.005370a2
cdq
add esp, 4
cmp ebx, edx
jg 0x4ac035
jl 0x4ac02d
cmp edi, eax
ja 0x4ac035
or eax, 0xffffffff
jmp 0x4ac995
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 0x4ac064
nop dword [eax + eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 3
lea eax, [eax + ecx*8]
je 0x4ac287
inc ecx
cmp ecx, edx
jl 0x4ac050
mov ecx, ebx
call fcn.004b0a30
push eax
lea ecx, [ebx + 0x30]
call fcn.004b3950
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.0047f480
cmp byte [0x5ee690], 0
je 0x4ac1b9
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4ac9c9
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.00419d30
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x4ac0ee
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ac0d4
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00419d30
lea eax, [ebp - 0x20]
mov ecx, 0x5ee658
push eax
call fcn.004cd8e0
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 0x4ac11d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5ee690], 0
je 0x4ac1b9
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4ac9c9
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.00419d30
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4ac18a
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 0x4ac170
sub edx, dword [ebp - 0x14]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x20]
call fcn.00419d30
lea eax, [ebp - 0x20]
mov ecx, 0x5ee658
push eax
call fcn.004cd8e0
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 0x4ac1b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [ebx + 0x90]
lea ecx, [ebx + 0x188]
push esi
call fcn.004ba5b0
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.00499a80
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 0x4ac206
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004b3e80
mov dword [ebp - 0x24], eax
lea ecx, [ebx + 0x30]
test eax, eax
je 0x4ac390
mov dword [ebp - 4], 0x10
mov ecx, dword [ecx + 0xd4]
sub ecx, 0x10
call fcn.00409540
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.004b0910
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 0x4ac27d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4ac995
test eax, eax
je 0x4ac064
add eax, 4
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.004b0a30
mov ecx, dword [ebp - 0x20]
mov edx, eax
call fcn.0040de60
test al, al
je 0x4ac2b6
mov ecx, ebx
call fcn.004afb40
jmp 0x4ac995
push dword [ebp - 0x20]
lea ecx, [ebx + 0x30]
call fcn.004b3950
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00499a80
mov dword [ebp - 4], 0
mov ecx, 0x5ee694
push eax
call fcn.0047f480
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 0x4ac2ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5ee694]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4ac331
lea esi, [edx - 1]
test esi, esi
js 0x4ac9b3
cmp esi, edx
jg 0x4ac9b3
cmp word [eax + esi*2], 0x5c
je 0x4ac331
push 0x5c
mov ecx, 0x5ee694
call fcn.004982a0
mov ecx, ebx
call fcn.004b0a30
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.00416070
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x140]
call fcn.004aa4d0
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 0x4ac37c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
lea ecx, [ebx + 4]
call fcn.0047f480
mov byte [ebp - 0x25], 1
jmp 0x4ac074
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x5a59fc
mov dword [ebx + 0x274], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0x5a5c80
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 0x4ac470
push eax
mov ecx, ebx
call fcn.004aca80
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x204]
call fcn.004a26d0
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.00409540
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x15
lea ecx, [ebx + 0x30]
call fcn.004b3aa0
lea ecx, [ebx + 0x204]
call fcn.004a22b0
push eax
lea ecx, [ebx + 0x30]
call fcn.004b7f40
lea eax, [ebx + 0x260]
push eax
lea ecx, [ebx + 0x10c]
call fcn.0047f480
lea eax, [ebx + 0x24c]
mov ecx, ebx
push eax
call fcn.004afab0
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4ac470
mov eax, dword [edi]
cmp dword [eax + ecx*8], 0x1a
lea eax, [eax + ecx*8]
je 0x4ac465
inc ecx
cmp ecx, edx
jl 0x4ac453
jmp 0x4ac470
test eax, eax
je 0x4ac470
mov byte [ebx + 0x128], 1
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4ac4ab
nop dword [eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 6
lea esi, [eax + ecx*8]
je 0x4ac496
inc ecx
cmp ecx, edx
jl 0x4ac480
mov esi, edi
xor ecx, ecx
jmp 0x4ac4b5
test esi, esi
je 0x4ac4ab
lea edi, [ebx + 0x204]
push 1
mov ecx, edi
call fcn.004a1eb0
jmp 0x4ac506
mov eax, edx
xor ecx, ecx
mov esi, edi
test eax, eax
jle 0x4ac4e0
mov eax, dword [esi]
cmp dword [eax + ecx*8], 7
lea esi, [eax + ecx*8]
je 0x4ac4cb
inc ecx
mov esi, edi
cmp ecx, edx
jl 0x4ac4b5
xor ecx, ecx
jmp 0x4ac4e6
test esi, esi
je 0x4ac4e0
lea edi, [ebx + 0x204]
push 1
mov ecx, edi
call fcn.004a20f0
jmp 0x4ac506
xor ecx, ecx
test edx, edx
jle 0x4ac4fe
cmp ecx, edx
jge 0x4ac9bd
mov eax, dword [edi]
cmp dword [eax + ecx*8], 8
lea esi, [eax + ecx*8]
je 0x4ac51d
inc ecx
cmp ecx, edx
jl 0x4ac4ee
xor esi, esi
lea edi, [ebx + 0x204]
cmp byte [ebp + 8], 0
je 0x4ac53b
mov dword [ebx + 0xc0], 3
xor esi, esi
jmp 0x4ac977
lea edi, [ebx + 0x204]
test esi, esi
je 0x4ac506
push 0
mov ecx, edi
call fcn.004a1eb0
push 0
mov ecx, edi
call fcn.004a20f0
jmp 0x4ac506
mov ecx, edi
call fcn.004a1dc0
test al, al
mov byte [ebx + 0x1f8], al
mov ecx, ebx
sete byte [0x5e8bec]
call fcn.004acc00
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4ac9c9
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 0x4ac590
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4ac59c
push 8
push str.Advinst_
call fcn.004098b0
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x30]
call fcn.004b40a0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00419d30
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 0x4ac5df
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 [0x5e91e4]
mov edx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x4ac616
mov edx, dword [0x5e91e0]
mov ecx, 0x5e91e0
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov dword [0x5e91e4], ecx
test edx, edx
je 0x4ac63d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5e91e4]
cmp eax, 0xb7
jne 0x4ac63d
push ecx
mov byte [0x5e91e8], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4ac695
cmp byte [0x5e91e8], 0
je 0x4ac64f
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4ac695
test ecx, ecx
je 0x4ac695
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x5e91dc
push 0x4c4300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, dword [0x5e91f0]
je 0x4ac695
mov edx, dword [0x5e91ec]
mov ecx, 0x5e91ec
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov dword [0x5e91f0], eax
test esi, esi
jne 0x4ac6ef
cmp byte [0x5e91e8], 0
je 0x4ac6ef
mov edx, 0xcc
mov dword [ebx + 0xc0], 3
lea ecx, [ebp - 0x24]
call fcn.004c2e00
mov byte [ebp - 4], 0x1c
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.004a4210
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 0x4ac6e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4ac95b
mov ecx, ebx
call fcn.004ae6d0
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x188]
call fcn.004ba650
test byte [ebx + 0x74], 2
je 0x4ac756
cmp byte [ebx + 0x1f8], 0
mov dword [ebp - 0x18], 0x5a303c
mov dword [ebp - 0x14], ebx
je 0x4ac730
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004ab560
jmp 0x4ac756
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041a4e0
movzx eax, al
lea ecx, [ebx + 0x188]
push eax
push 0xdc
call fcn.004ba650
lea eax, [ebp - 0x18]
push eax
call fcn.004ba8d0
mov ecx, ebx
call fcn.004acd70
test al, al
je 0x4ac768
xor esi, esi
jmp 0x4ac95b
test byte [ebx + 0x74], 4
je 0x4ac7c5
cmp byte [ebx + 0x1f8], 0
mov dword [ebp - 0x1c], 0x5a3034
mov dword [ebp - 0x18], ebx
je 0x4ac78f
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004ab680
jmp 0x4ac7b5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041a4e0
movzx eax, al
lea ecx, [ebx + 0x188]
push eax
push 0x8a
call fcn.004ba650
lea eax, [ebp - 0x1c]
push eax
call fcn.004ba8d0
cmp byte [ebp - 0x14], 0
je 0x4ac7c5
mov esi, 1
jmp 0x4ac95b
mov ecx, ebx
call fcn.004ad080
cmp byte [ebp - 0x25], 0
jne 0x4ac84d
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4ac84d
test eax, 0x2000
jne 0x4ac84d
mov ecx, ebx
call fcn.004b0a30
mov edx, eax
mov eax, dword [edx]
cmp dword [eax - 0xc], 3
jl 0x4ac84d
cmp word [eax], 0x5c
jne 0x4ac805
cmp word [eax + 2], 0x5c
jne 0x4ac805
cmp word [eax + 4], 0x5c
jne 0x4ac84d
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4ac9b3
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4ac810
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 0x4ac84d
mov ecx, ebx
call fcn.004afb40
mov esi, eax
jmp 0x4ac95b
mov ecx, ebx
call fcn.004ad110
mov ecx, dword [ebx + 0x28]
sub ecx, 0x10
call fcn.00409540
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jne 0x4ac8bc
lea eax, [ebx + 0x214]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0047f480
push 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.004bbc00
add esp, 4
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.0047f480
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 0x4ac8bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x194]
call fcn.004ba260
mov eax, dword [ebx + 0x23c]
mov ecx, ebx
mov dword [ebx + 0xc0], eax
mov al, byte [ebx + 0x240]
mov byte [ebx + 0xc4], al
lea eax, [ebp - 0x2c]
push eax
call fcn.004ad510
mov ecx, ebx
mov esi, eax
call fcn.004b1860
cmp byte [ebx + 0x1f8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], 0x5a302c
mov dword [ebp - 0x38], eax
je 0x4ac917
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004ab780
jmp 0x4ac93d
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041a4e0
movzx eax, al
lea ecx, [ebx + 0x188]
push eax
push 0x10a
call fcn.004ba650
lea eax, [ebp - 0x3c]
push eax
call fcn.004ba8d0
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 0x4ac95b
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 0x4ac977
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.004b2dd0
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.0052df57
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00409a00
push 1
push 0xc000008c
call fcn.00412050
push 0x80004005
call fcn.00409a00
int3