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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eb5c
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 0x4a4e2b
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 0x4a4db5
inc ecx
cmp ecx, edx
jl 0x4a4da0
jmp 0x4a4e2b
test eax, eax
je 0x4a4e2b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.00521bf1
push 0
push 0x2710
push 0
push esi
mov ebx, eax
mov edi, edx
call fcn.00522f00
sub ebx, eax
push 0
push 0x989680
sbb edi, edx
push edi
push ebx
call fcn.0053f970
mov esi, dword [ebp - 0x14]
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 4]
cmp dword [ecx - 4], 1
jle 0x4a4e09
push dword [ecx - 0xc]
lea ecx, [esi + 4]
call fcn.00408c70
mov ecx, dword [esi + 4]
push ecx
call fcn.0052b3a2
cdq
add esp, 4
cmp ebx, edx
jg 0x4a4e25
jl 0x4a4e1d
cmp edi, eax
ja 0x4a4e25
or eax, 0xffffffff
jmp 0x4a5785
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 0x4a4e54
nop dword [eax + eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 3
lea eax, [eax + ecx*8]
je 0x4a5077
inc ecx
cmp ecx, edx
jl 0x4a4e40
mov ecx, ebx
call fcn.004a9820
push eax
lea ecx, [ebx + 0x30]
call fcn.004ac720
lea eax, [ebx + 0x28]
push eax
lea ecx, [ebx + 0xa4]
call fcn.00478ba0
cmp byte [0x5dc650], 0
je 0x4a4fa9
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a57b9
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.00419140
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x4a4ede
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4ec4
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00419140
lea eax, [ebp - 0x20]
mov ecx, 0x5dc618
push eax
call fcn.004c6280
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 0x4a4f0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5dc650], 0
je 0x4a4fa9
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a57b9
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.00419140
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4a4f7a
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 0x4a4f60
sub edx, dword [ebp - 0x14]
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x20]
call fcn.00419140
lea eax, [ebp - 0x20]
mov ecx, 0x5dc618
push eax
call fcn.004c6280
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 0x4a4fa9
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.004b2f70
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.00492a40
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 0x4a4ff6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004acc50
mov dword [ebp - 0x24], eax
lea ecx, [ebx + 0x30]
test eax, eax
je 0x4a5180
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.004a9700
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 0x4a506d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4a5785
test eax, eax
je 0x4a4e54
add eax, 4
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.004a9820
mov ecx, dword [ebp - 0x20]
mov edx, eax
call fcn.0040d000
test al, al
je 0x4a50a6
mov ecx, ebx
call fcn.004a8930
jmp 0x4a5785
push dword [ebp - 0x20]
lea ecx, [ebx + 0x30]
call fcn.004ac720
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00492a40
mov dword [ebp - 4], 0
mov ecx, 0x5dc654
push eax
call fcn.00478ba0
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 0x4a50ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5dc654]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4a5121
lea esi, [edx - 1]
test esi, esi
js 0x4a57a3
cmp esi, edx
jg 0x4a57a3
cmp word [eax + esi*2], 0x5c
je 0x4a5121
push 0x5c
mov ecx, 0x5dc654
call fcn.00491350
mov ecx, ebx
call fcn.004a9820
lea ecx, [ebp - 0x24]
push dword [eax]
call fcn.004154d0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x130]
call fcn.004a3300
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 0x4a516c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
lea ecx, [ebx + 4]
call fcn.00478ba0
mov byte [ebp - 0x25], 1
jmp 0x4a4e64
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x5958c0
mov dword [ebx + 0x264], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0x595b40
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 0x4a5260
push eax
mov ecx, ebx
call fcn.004a5870
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x1f4]
call fcn.0049b5d0
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.004ac870
lea ecx, [ebx + 0x1f4]
call fcn.0049b1b0
push eax
lea ecx, [ebx + 0x30]
call fcn.004b0c90
lea eax, [ebx + 0x250]
push eax
lea ecx, [ebx + 0x10c]
call fcn.00478ba0
lea eax, [ebx + 0x23c]
mov ecx, ebx
push eax
call fcn.004a88a0
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a5260
mov eax, dword [edi]
cmp dword [eax + ecx*8], 0x1a
lea eax, [eax + ecx*8]
je 0x4a5255
inc ecx
cmp ecx, edx
jl 0x4a5243
jmp 0x4a5260
test eax, eax
je 0x4a5260
mov byte [ebx + 0x128], 1
mov edx, dword [edi + 4]
xor ecx, ecx
test edx, edx
jle 0x4a529b
nop dword [eax]
mov eax, dword [edi]
cmp dword [eax + ecx*8], 6
lea esi, [eax + ecx*8]
je 0x4a5286
inc ecx
cmp ecx, edx
jl 0x4a5270
mov esi, edi
xor ecx, ecx
jmp 0x4a52a5
test esi, esi
je 0x4a529b
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049adb0
jmp 0x4a52f6
mov eax, edx
xor ecx, ecx
mov esi, edi
test eax, eax
jle 0x4a52d0
mov eax, dword [esi]
cmp dword [eax + ecx*8], 7
lea esi, [eax + ecx*8]
je 0x4a52bb
inc ecx
mov esi, edi
cmp ecx, edx
jl 0x4a52a5
xor ecx, ecx
jmp 0x4a52d6
test esi, esi
je 0x4a52d0
lea edi, [ebx + 0x1f4]
push 1
mov ecx, edi
call fcn.0049aff0
jmp 0x4a52f6
xor ecx, ecx
test edx, edx
jle 0x4a52ee
cmp ecx, edx
jge 0x4a57ad
mov eax, dword [edi]
cmp dword [eax + ecx*8], 8
lea esi, [eax + ecx*8]
je 0x4a530d
inc ecx
cmp ecx, edx
jl 0x4a52de
xor esi, esi
lea edi, [ebx + 0x1f4]
cmp byte [ebp + 8], 0
je 0x4a532b
mov dword [ebx + 0xc0], 3
xor esi, esi
jmp 0x4a5767
lea edi, [ebx + 0x1f4]
test esi, esi
je 0x4a52f6
push 0
mov ecx, edi
call fcn.0049adb0
push 0
mov ecx, edi
call fcn.0049aff0
jmp 0x4a52f6
mov ecx, edi
call fcn.0049acc0
test al, al
mov byte [ebx + 0x1e8], al
mov ecx, ebx
sete byte [0x5d6bdc]
call fcn.004a59f0
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x4a57b9
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 0x4a5380
movzx eax, ax
push eax
call fcn.00415370
jmp 0x4a538c
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.004ace70
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00419140
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 0x4a53cf
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 [0x5d71c0]
mov edx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x4a5406
mov edx, dword [0x5d71bc]
mov ecx, 0x5d71bc
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov dword [0x5d71c0], ecx
test edx, edx
je 0x4a542d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5d71c0]
cmp eax, 0xb7
jne 0x4a542d
push ecx
mov byte [0x5d71c4], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a5485
cmp byte [0x5d71c4], 0
je 0x4a543f
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a5485
test ecx, ecx
je 0x4a5485
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x5d71b8
push 0x4bccb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, dword [0x5d71cc]
je 0x4a5485
mov edx, dword [0x5d71c8]
mov ecx, 0x5d71c8
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov dword [0x5d71cc], eax
test esi, esi
jne 0x4a54df
cmp byte [0x5d71c4], 0
je 0x4a54df
mov edx, 0xcc
mov dword [ebx + 0xc0], 3
lea ecx, [ebp - 0x24]
call fcn.004bb7b0
mov byte [ebp - 4], 0x1c
mov dl, 1
lea ecx, [ebp - 0x24]
call fcn.0049d070
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 0x4a54d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4a574b
mov ecx, ebx
call fcn.004a74c0
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x178]
call fcn.004b3010
test byte [ebx + 0x74], 2
je 0x4a5546
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x18], 0x592f6c
mov dword [ebp - 0x14], ebx
je 0x4a5520
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004a4360
jmp 0x4a5546
push ecx
lea ecx, [ebp - 0x18]
call fcn.004198b0
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0xdc
call fcn.004b3010
lea eax, [ebp - 0x18]
push eax
call fcn.004b3290
mov ecx, ebx
call fcn.004a5b60
test al, al
je 0x4a5558
xor esi, esi
jmp 0x4a574b
test byte [ebx + 0x74], 4
je 0x4a55b5
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x1c], 0x592f64
mov dword [ebp - 0x18], ebx
je 0x4a557f
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004a4480
jmp 0x4a55a5
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004198b0
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x8a
call fcn.004b3010
lea eax, [ebp - 0x1c]
push eax
call fcn.004b3290
cmp byte [ebp - 0x14], 0
je 0x4a55b5
mov esi, 1
jmp 0x4a574b
mov ecx, ebx
call fcn.004a5e70
cmp byte [ebp - 0x25], 0
jne 0x4a563d
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4a563d
test eax, 0x2000
jne 0x4a563d
mov ecx, ebx
call fcn.004a9820
mov edx, eax
mov eax, dword [edx]
cmp dword [eax - 0xc], 3
jl 0x4a563d
cmp word [eax], 0x5c
jne 0x4a55f5
cmp word [eax + 2], 0x5c
jne 0x4a55f5
cmp word [eax + 4], 0x5c
jne 0x4a563d
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4a57a3
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4a5600
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 0x4a563d
mov ecx, ebx
call fcn.004a8930
mov esi, eax
jmp 0x4a574b
mov ecx, ebx
call fcn.004a5f00
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 0x4a56ac
lea eax, [ebx + 0x204]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00478ba0
push 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.004b45b0
add esp, 4
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.00478ba0
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 0x4a56ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x184]
call fcn.004b2c20
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.004a6300
mov ecx, ebx
mov esi, eax
call fcn.004aa650
cmp byte [ebx + 0x1e8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], 0x592f5c
mov dword [ebp - 0x38], eax
je 0x4a5707
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004a4580
jmp 0x4a572d
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004198b0
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x10a
call fcn.004b3010
lea eax, [ebp - 0x3c]
push eax
call fcn.004b3290
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 0x4a574b
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 0x4a5767
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.004abbc0
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.0052223b
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00408fc0
push 1
push 0xc000008c
call fcn.004111f0
push 0x80004005
call fcn.00408fc0
int3