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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f2dc
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 0x4a457b
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 0x4a4505
inc ecx
cmp ecx, edx
jl 0x4a44f0
jmp 0x4a457b
test eax, eax
je 0x4a457b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.005215ae
push 0
push 0x2710
push 0
push esi
mov ebx, eax
mov edi, edx
call fcn.00522a70
sub ebx, eax
push 0
push 0x989680
sbb edi, edx
push edi
push ebx
call fcn.0053fcc0
mov esi, dword [ebp - 0x14]
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 4]
cmp dword [ecx - 4], 1
jle 0x4a4559
push dword [ecx - 0xc]
lea ecx, [esi + 4]
call fcn.00408c70
mov ecx, dword [esi + 4]
push ecx
call fcn.0052b6e2
cdq
add esp, 4
cmp ebx, edx
jg 0x4a4575
jl 0x4a456d
cmp edi, eax
ja 0x4a4575
or eax, 0xffffffff
jmp 0x4a4ed5
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 0x4a45a4
nop dword [eax + eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 3
lea eax, [eax + ecx*8]
je 0x4a47c7
inc ecx
cmp ecx, edx
jl 0x4a4590
mov ecx, ebx
call fcn.004a9120
push eax
lea ecx, [ebx + 0x30]
call fcn.004abfd0
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.00478300
cmp byte [0x5de650], 0
je 0x4a46f9
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a4f09
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.00418f60
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x4a462e
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4614
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00418f60
lea eax, [ebp - 0x20]
mov ecx, 0x5de618
push eax
call fcn.004c5b20
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 0x4a465d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5de650], 0
je 0x4a46f9
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a4f09
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.00418f60
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4a46ca
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 0x4a46b0
sub edx, dword [ebp - 0x14]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x20]
call fcn.00418f60
lea eax, [ebp - 0x20]
mov ecx, 0x5de618
push eax
call fcn.004c5b20
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 0x4a46f9
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.004b2820
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.00492160
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 0x4a4746
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004ac500
mov dword [ebp - 0x24], eax
lea ecx, [ebx + 0x30]
test eax, eax
je 0x4a48d0
mov dword [ebp - 4], 0x10
mov ecx, dword [ecx + 0xd4]
sub ecx, 0x10
call fcn.00408b00
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.004a9000
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 0x4a47bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4a4ed5
test eax, eax
je 0x4a45a4
add eax, 4
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.004a9120
mov ecx, dword [ebp - 0x20]
mov edx, eax
call fcn.0040cff0
test al, al
je 0x4a47f6
mov ecx, ebx
call fcn.004a8080
jmp 0x4a4ed5
push dword [ebp - 0x20]
lea ecx, [ebx + 0x30]
call fcn.004abfd0
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00492160
mov dword [ebp - 4], 0
mov ecx, 0x5de654
push eax
call fcn.00478300
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 0x4a483f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5de654]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4a4871
lea esi, [edx - 1]
test esi, esi
js 0x4a4ef3
cmp esi, edx
jg 0x4a4ef3
cmp word [eax + esi*2], 0x5c
je 0x4a4871
push 0x5c
mov ecx, 0x5de654
call fcn.00490a80
mov ecx, ebx
call fcn.004a9120
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.004152f0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x130]
call fcn.004a2a50
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 0x4a48bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
lea ecx, [ebx + 4]
call fcn.00478300
mov byte [ebp - 0x25], 1
jmp 0x4a45b4
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x5976c4
mov dword [ebx + 0x264], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0x597944
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 0x4a49b0
push eax
mov ecx, ebx
call fcn.004a4fc0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x1f4]
call fcn.0049ad20
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.00408b00
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x15
lea ecx, [ebx + 0x30]
call fcn.004ac120
lea ecx, [ebx + 0x1f4]
call fcn.0049a900
push eax
lea ecx, [ebx + 0x30]
call fcn.004b0540
lea eax, [ebx + 0x250]
push eax
lea ecx, [ebx + 0x10c]
call fcn.00478300
lea eax, [ebx + 0x23c]
mov ecx, ebx
push eax
call fcn.004a7ff0
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a49b0
mov eax, dword [edi]
cmp dword [eax + ecx*8], 0x1a
lea eax, [eax + ecx*8]
je 0x4a49a5
inc ecx
cmp ecx, edx
jl 0x4a4993
jmp 0x4a49b0
test eax, eax
je 0x4a49b0
mov byte [ebx + 0x128], 1
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a49eb
nop dword [eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 6
lea esi, [eax + ecx*8]
je 0x4a49d6
inc ecx
cmp ecx, edx
jl 0x4a49c0
mov esi, edi
xor ecx, ecx
jmp 0x4a49f5
test esi, esi
je 0x4a49eb
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049a500
jmp 0x4a4a46
mov eax, edx
xor ecx, ecx
mov esi, edi
test eax, eax
jle 0x4a4a20
mov eax, dword [esi]
cmp dword [eax + ecx*8], 7
lea esi, [eax + ecx*8]
je 0x4a4a0b
inc ecx
mov esi, edi
cmp ecx, edx
jl 0x4a49f5
xor ecx, ecx
jmp 0x4a4a26
test esi, esi
je 0x4a4a20
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049a740
jmp 0x4a4a46
xor ecx, ecx
test edx, edx
jle 0x4a4a3e
cmp ecx, edx
jge 0x4a4efd
mov eax, dword [edi]
cmp dword [eax + ecx*8], 8
lea esi, [eax + ecx*8]
je 0x4a4a5d
inc ecx
cmp ecx, edx
jl 0x4a4a2e
xor esi, esi
lea edi, [ebx + 0x1f4]
cmp byte [ebp + 8], 0
je 0x4a4a7b
mov dword [ebx + 0xc0], 3
xor esi, esi
jmp 0x4a4eb7
lea edi, [ebx + 0x1f4]
test esi, esi
je 0x4a4a46
push 0
mov ecx, edi
call fcn.0049a500
push 0
mov ecx, edi
call fcn.0049a740
jmp 0x4a4a46
mov ecx, edi
call fcn.0049a410
test al, al
mov byte [ebx + 0x1e8], al
mov ecx, ebx
sete byte [0x5d8bdc]
call fcn.004a5140
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a4f09
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 0x4a4ad0
movzx eax, ax
push eax
call fcn.00415190
jmp 0x4a4adc
push 8
push str.Advinst_
call fcn.00408e70
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x30]
call fcn.004ac720
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418f60
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 0x4a4b1f
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 0x4a4b56
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 0x4a4b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d91c0]
cmp eax, 0xb7
jne 0x4a4b7d
push ecx
mov byte [0x5d91c4], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a4bd5
cmp byte [0x5d91c4], 0
je 0x4a4b8f
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a4bd5
test ecx, ecx
je 0x4a4bd5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x5d91b8
push 0x4bc560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, dword [0x5d91cc]
je 0x4a4bd5
mov edx, dword [0x5d91c8]
mov ecx, 0x5d91c8
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov dword [0x5d91cc], eax
test esi, esi
jne 0x4a4c2f
cmp byte [0x5d91c4], 0
je 0x4a4c2f
mov edx, 0xcc
mov dword [ebx + 0xc0], 3
lea ecx, [ebp - 0x24]
call fcn.004bb060
mov byte [ebp - 4], 0x1c
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.0049c7c0
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 0x4a4c25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4a4e9b
mov ecx, ebx
call fcn.004a6c10
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x178]
call fcn.004b28c0
test byte [ebx + 0x74], 2
je 0x4a4c96
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x18], 0x594d74
mov dword [ebp - 0x14], ebx
je 0x4a4c70
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004a3ab0
jmp 0x4a4c96
push ecx
lea ecx, [ebp - 0x18]
call fcn.004196d0
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0xdc
call fcn.004b28c0
lea eax, [ebp - 0x18]
push eax
call fcn.004b2b40
mov ecx, ebx
call fcn.004a52b0
test al, al
je 0x4a4ca8
xor esi, esi
jmp 0x4a4e9b
test byte [ebx + 0x74], 4
je 0x4a4d05
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x1c], 0x594d6c
mov dword [ebp - 0x18], ebx
je 0x4a4ccf
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004a3bd0
jmp 0x4a4cf5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004196d0
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x8a
call fcn.004b28c0
lea eax, [ebp - 0x1c]
push eax
call fcn.004b2b40
cmp byte [ebp - 0x14], 0
je 0x4a4d05
mov esi, 1
jmp 0x4a4e9b
mov ecx, ebx
call fcn.004a55c0
cmp byte [ebp - 0x25], 0
jne 0x4a4d8d
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4a4d8d
test eax, 0x2000
jne 0x4a4d8d
mov ecx, ebx
call fcn.004a9120
mov edx, eax
mov eax, dword [edx]
cmp dword [eax - 0xc], 3
jl 0x4a4d8d
cmp word [eax], 0x5c
jne 0x4a4d45
cmp word [eax + 2], 0x5c
jne 0x4a4d45
cmp word [eax + 4], 0x5c
jne 0x4a4d8d
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4a4ef3
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4a4d50
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 0x4a4d8d
mov ecx, ebx
call fcn.004a8080
mov esi, eax
jmp 0x4a4e9b
mov ecx, ebx
call fcn.004a5650
mov ecx, dword [ebx + 0x28]
sub ecx, 0x10
call fcn.00408b00
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jne 0x4a4dfc
lea eax, [ebx + 0x204]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00478300
push 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.004b3e60
add esp, 4
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.00478300
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 0x4a4dfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x184]
call fcn.004b24d0
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.004a5a50
mov ecx, ebx
mov esi, eax
call fcn.004a9f50
cmp byte [ebx + 0x1e8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], 0x594d64
mov dword [ebp - 0x38], eax
je 0x4a4e57
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004a3cd0
jmp 0x4a4e7d
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004196d0
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x10a
call fcn.004b28c0
lea eax, [ebp - 0x3c]
push eax
call fcn.004b2b40
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 0x4a4e9b
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 0x4a4eb7
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.004ab470
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.00521dac
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00408fc0
push 1
push 0xc000008c
call fcn.00411010
push 0x80004005
call fcn.00408fc0
int3