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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559567
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5cf024]
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
mov dword [ebp - 0x34], 0
xor ecx, ecx
mov edx, dword [ebx + 0x20]
test edx, edx
jle 0x4a340d
mov eax, dword [ebx + 0x1c]
cmp dword [eax + ecx*8], 0x1b
lea eax, [eax + ecx*8]
mov dword [ebp - 0x28], eax
je 0x4a339a
inc ecx
cmp ecx, edx
jl 0x4a3384
jmp 0x4a340d
test eax, eax
je 0x4a340d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.0051d24c
push 0
push 0x2710
push 0
push esi
mov ebx, eax
mov edi, edx
call fcn.0051e6e0
sub ebx, eax
push 0
push 0x989680
sbb edi, edx
push edi
push ebx
call fcn.0053b6f0
mov esi, dword [ebp - 0x28]
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 4]
cmp dword [ecx - 4], 1
jle 0x4a33ee
push dword [ecx - 0xc]
lea ecx, [esi + 4]
call fcn.00408c30
mov ecx, dword [esi + 4]
push ecx
call fcn.00527486
cdq
add esp, 4
cmp ebx, edx
jg 0x4a340a
jl 0x4a3402
cmp edi, eax
ja 0x4a340a
or eax, 0xffffffff
jmp 0x4a3d75
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebx + 0x20]
xor ecx, ecx
or edi, 0xffffffff
mov byte [ebp - 0x21], 0
test edx, edx
jle 0x4a3435
nop dword [eax]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + ecx*8], 3
lea esi, [eax + ecx*8]
je 0x4a3644
inc ecx
cmp ecx, edx
jl 0x4a3420
mov ecx, ebx
lea esi, [ebx + 0x30]
call fcn.004a80b0
push eax
mov ecx, esi
call fcn.004aaf70
lea eax, [ebx + 0x28]
push eax
lea ecx, [esi + 0x74]
call fcn.00477830
cmp byte [0x5d5588], 0
je 0x4a357a
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4a3da9
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.00418fe0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x4a34ba
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a34a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.00418fe0
lea eax, [ebp - 0x20]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a34e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x5d5588], 0
je 0x4a357a
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4a3da9
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.00418fe0
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x4a354b
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4a3532
sub edx, ecx
lea ecx, [ebp - 0x20]
sar edx, 1
push edx
push esi
call fcn.00418fe0
lea eax, [ebp - 0x20]
mov ecx, 0x5d5554
push eax
call fcn.004c38f0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a357a
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.004b1710
mov edx, esi
lea ecx, [ebp - 0x14]
call fcn.004913b0
mov dword [ebp - 4], 0xe
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a35c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x30]
call fcn.004ab4c0
mov dword [ebp - 0x28], eax
lea ecx, [ebx + 0x30]
test eax, eax
je 0x4a3778
mov dword [ebp - 4], 0x10
mov ecx, dword [ecx + 0xd4]
sub ecx, 0x10
call fcn.00408ad0
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 0x34], 4
call fcn.004a7f90
mov eax, 4
mov dword [ebp - 0x34], eax
and eax, 0xfffffffb
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4a363a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x4a3d75
test esi, esi
je 0x4a3435
mov ecx, ebx
call fcn.004a80b0
mov eax, dword [eax]
test eax, eax
je 0x4a3da9
mov ecx, dword [esi + 4]
add esi, 4
mov dword [ebp - 0x14], esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4a368c
test dx, dx
je 0x4a3688
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4a368c
add ecx, 4
add eax, 4
test dx, dx
jne 0x4a3666
xor eax, eax
jmp 0x4a3691
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a36a1
mov ecx, ebx
call fcn.004a6fd0
jmp 0x4a3d75
lea ecx, [ebx + 0x30]
push esi
call fcn.004aaf70
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004913b0
mov dword [ebp - 4], 0
mov ecx, 0x5d558c
push eax
call fcn.00477830
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a36e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5d558c]
mov edx, dword [eax - 0xc]
test edx, edx
jle 0x4a3719
lea esi, [edx - 1]
test esi, esi
js 0x4a3d93
cmp esi, edx
jg 0x4a3d93
cmp word [eax + esi*2], 0x5c
je 0x4a3719
push 0x5c
mov ecx, 0x5d558c
call fcn.0048fc70
mov ecx, ebx
call fcn.004a80b0
lea ecx, [ebp - 0x20]
push dword [eax]
call fcn.00415390
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x130]
call fcn.004a18f0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3761
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
lea ecx, [ebx + 4]
call fcn.00477830
mov byte [ebp - 0x21], 1
lea esi, [ebx + 0x30]
jmp 0x4a3447
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x58eb50
mov dword [ebx + 0x264], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x4c], 0x58ecb8
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 0x4a385e
push eax
mov ecx, ebx
call fcn.004a3e60
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0x1f4]
call fcn.00499c10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x24]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x28], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408ad0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x15
lea ecx, [ebx + 0x30]
call fcn.004ab0c0
lea ecx, [ebx + 0x1f4]
call fcn.004997f0
push eax
lea ecx, [ebx + 0x30]
call fcn.004af510
lea eax, [ebx + 0x250]
push eax
lea ecx, [ebx + 0x10c]
call fcn.00477830
lea eax, [ebx + 0x23c]
mov ecx, ebx
push eax
call fcn.004a6f40
mov edx, dword [ebx + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4a385e
nop dword [eax + eax]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + ecx*8], 0x1a
lea eax, [eax + ecx*8]
je 0x4a3853
inc ecx
cmp ecx, edx
jl 0x4a3840
jmp 0x4a385e
test eax, eax
je 0x4a385e
mov byte [ebx + 0x128], 1
mov edx, dword [ebx + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4a3881
nop word [eax + eax]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + ecx*8], 6
lea esi, [eax + ecx*8]
je 0x4a38da
inc ecx
cmp ecx, edx
jl 0x4a3870
xor ecx, ecx
test edx, edx
jle 0x4a38a1
nop word [eax + eax]
mov eax, dword [ebx + 0x1c]
cmp dword [eax + ecx*8], 7
lea esi, [eax + ecx*8]
je 0x4a38ed
inc ecx
cmp ecx, edx
jl 0x4a3890
xor ecx, ecx
test edx, edx
jle 0x4a38c1
cmp ecx, dword [ebx + 0x20]
jge 0x4a3d9d
mov eax, dword [ebx + 0x1c]
cmp dword [eax + ecx*8], 8
lea esi, [eax + ecx*8]
je 0x4a3900
inc ecx
cmp ecx, edx
jl 0x4a38a7
xor esi, esi
cmp byte [ebp + 8], 0
je 0x4a3920
mov dword [ebx + 0xc0], 3
xor esi, esi
jmp 0x4a3d57
test esi, esi
je 0x4a3881
push 1
lea ecx, [ebx + 0x1f4]
call fcn.004993f0
jmp 0x4a38c3
test esi, esi
je 0x4a38a1
push 1
lea ecx, [ebx + 0x1f4]
call fcn.00499630
jmp 0x4a38c3
test esi, esi
je 0x4a38c3
push 0
lea ecx, [ebx + 0x1f4]
call fcn.004993f0
push 0
lea ecx, [ebx + 0x1f4]
call fcn.00499630
jmp 0x4a38c3
lea ecx, [ebx + 0x1f4]
call fcn.00499300
test al, al
mov byte [ebx + 0x1e8], al
mov ecx, ebx
sete byte [0x5cfac4]
call fcn.004a3fe0
call fcn.004092a0
mov ecx, eax
test ecx, ecx
je 0x4a3da9
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 0x4a3979
movzx eax, ax
push eax
call fcn.00415230
jmp 0x4a3985
push 8
push str.Advinst_
call fcn.00408e30
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x30]
call fcn.004ab6e0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x30]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00418fe0
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a39c5
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 [0x5cfcbc]
mov edx, ecx
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x4a39fc
mov edx, dword [0x5cfcb8]
mov ecx, 0x5cfcb8
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov dword [0x5cfcbc], ecx
test edx, edx
je 0x4a3a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5cfcbc]
cmp eax, 0xb7
jne 0x4a3a23
push ecx
mov byte [0x5cfcc0], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a3a7b
cmp byte [0x5cfcc0], 0
je 0x4a3a35
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4a3a7b
test ecx, ecx
je 0x4a3a7b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0x5cfcb4
push 0x4babd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x28], eax
cmp eax, dword [0x5cfcc8]
je 0x4a3a7b
mov edx, dword [0x5cfcc4]
mov ecx, 0x5cfcc4
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
mov dword [0x5cfcc8], eax
test esi, esi
jne 0x4a3ad5
cmp byte [0x5cfcc0], 0
je 0x4a3ad5
mov edx, 0xcc
mov dword [ebx + 0xc0], 3
lea ecx, [ebp - 0x20]
call fcn.004b9690
mov byte [ebp - 4], 0x1c
mov dl, 1
lea ecx, [ebp - 0x20]
call fcn.0049b6c0
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a3acb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4a3d3b
mov ecx, ebx
call fcn.004a5c10
push ecx
push 0
push 0xdc
lea ecx, [ebx + 0x178]
call fcn.004b17b0
test byte [ebx + 0x74], 2
je 0x4a3b3c
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x18], 0x58c318
mov dword [ebp - 0x14], ebx
je 0x4a3b16
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.004a2950
jmp 0x4a3b3c
push ecx
lea ecx, [ebp - 0x18]
call fcn.00419750
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0xdc
call fcn.004b17b0
lea eax, [ebp - 0x18]
push eax
call fcn.004b1a30
mov ecx, ebx
call fcn.004a4150
test al, al
je 0x4a3b4e
xor esi, esi
jmp 0x4a3d3b
test byte [ebx + 0x74], 4
je 0x4a3bab
cmp byte [ebx + 0x1e8], 0
mov dword [ebp - 0x1c], 0x58c320
mov dword [ebp - 0x18], ebx
je 0x4a3b75
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004a2a70
jmp 0x4a3b9b
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00419750
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x8a
call fcn.004b17b0
lea eax, [ebp - 0x1c]
push eax
call fcn.004b1a30
cmp byte [ebp - 0x14], 0
je 0x4a3bab
mov esi, 1
jmp 0x4a3d3b
mov ecx, ebx
call fcn.004a4460
cmp byte [ebp - 0x21], 0
jne 0x4a3c2d
mov eax, dword [ebx + 0x74]
test al, 1
je 0x4a3c2d
test eax, 0x2000
jne 0x4a3c2d
mov ecx, ebx
call fcn.004a80b0
mov edx, eax
mov eax, dword [edx]
cmp dword [eax - 0xc], 3
jl 0x4a3c2d
cmp word [eax], 0x5c
jne 0x4a3beb
cmp word [eax + 2], 0x5c
jne 0x4a3beb
cmp word [eax + 4], 0x5c
jne 0x4a3c2d
xor ecx, ecx
nop dword [eax]
mov eax, dword [edx]
cmp ecx, dword [eax - 0xc]
jg 0x4a3d93
mov ax, word [eax + ecx*2]
mov word [ebp + ecx*2 - 0x18], ax
inc ecx
cmp ecx, 3
jl 0x4a3bf0
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 0x4a3c2d
mov ecx, ebx
call fcn.004a6fd0
mov esi, eax
jmp 0x4a3d3b
mov ecx, ebx
call fcn.004a44f0
mov ecx, dword [ebx + 0x28]
sub ecx, 0x10
call fcn.00408ad0
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jne 0x4a3c9c
lea eax, [ebx + 0x204]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00477830
push 0
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.004b2d90
add esp, 4
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x2c]
push eax
call fcn.00477830
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 0x4a3c9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x184]
call fcn.004b13d0
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.004a48f0
mov ecx, ebx
mov esi, eax
call fcn.004a8f00
cmp byte [ebx + 0x1e8], 0
lea eax, [ebx + 0x30]
mov dword [ebp - 0x3c], 0x58c310
mov dword [ebp - 0x38], eax
je 0x4a3cf7
push 0
push 0
lea ecx, [ebp - 0x3c]
call fcn.004a2b70
jmp 0x4a3d1d
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00419750
movzx eax, al
lea ecx, [ebx + 0x178]
push eax
push 0x10a
call fcn.004b17b0
lea eax, [ebp - 0x3c]
push eax
call fcn.004b1a30
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 0x4a3d3b
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 0x4a3d57
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.004aa410
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.0051dacc
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00408f80
push 1
push 0xc000008c
call fcn.00411100
push 0x80004005
call fcn.00408f80
int3