Function at 0x42f860
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47725b
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x4bb050]
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 edi, ecx
cmp byte [edi + 0xcd0], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x868], ebx
je 0x42f8a9
mov al, 1
jmp 0x42fe58
push str.initruntime_safemode
mov byte [ebp - 0x861], 1
call fcn.0043f7a0
add esp, 4
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
push str.initruntime_safemode
setne al
mov byte [edi + 8], al
call fcn.0043f830
push str.initruntime_installpath
call fcn.0043f7a0
add esp, 8
mov ecx, edi
push ebx
call fcn.00430090
mov bl, al
neg bl
push str.initruntime_installpath
sbb bl, bl
and bl, byte [ebp - 0x861]
call fcn.0043f830
push str.initruntime_TempPath
call fcn.0043f7a0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0045bd20
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x42f966
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x868]
mov esi, eax
push 0x49be04
call fcn.0042c400
push esi
push 0x49c2f4
push eax
call fcn.00434d80
add esp, 0xc
xor bh, bh
jmp 0x42fa03
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f970
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21a], 0x5c
jne 0x42f9a7
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x42fe76
xor eax, eax
mov word [ebp + ecx - 0x218], ax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x73c]
call fcn.0042cbb0
lea eax, [ebp - 0x73c]
push eax
lea ecx, [edi + 0x254]
call fcn.0042d2b0
cmp byte [ebp - 0x620], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42fa01
mov eax, dword [ebp - 0x734]
lea ecx, [ebp - 0x730]
cmp eax, ecx
je 0x42fa01
push eax
call fcn.0045dc2d
add esp, 4
mov bh, 1
push str.initruntime_TempPath
call fcn.0043f830
push str.initruntime_VistaIE7
call fcn.0043f7a0
add esp, 4
mov ecx, edi
and bl, bh
call fcn.0042fe80
mov bh, al
neg bh
push str.initruntime_VistaIE7
sbb bh, bh
and bh, bl
call fcn.0043f830
push str.initruntime_DataPath
call fcn.0043f7a0
add esp, 8
mov ecx, edi
push dword [ebp - 0x868]
call fcn.00430150
test al, al
jne 0x42fa5a
xor bh, bh
jmp 0x42fb25
call fcn.0043f9c0
test al, al
je 0x42fa8e
mov dword [ebp - 0x86c], str.initruntime_ProfilePath
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call fcn.00448180
push str.initruntime_ProfilePath
push esi
mov ecx, eax
call fcn.00447cf0
mov ecx, eax
call fcn.00447ff0
push dword [ebp - 0x868]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00430560
test al, al
jne 0x42faaa
xor bh, bh
jmp 0x42fb13
xor ecx, ecx
lea esi, [edi + 0x4a8]
mov word [edi + 0x6e4], cx
cmp byte [edi + 0x5b8], cl
jne 0x42fac7
mov esi, dword [edi + 0x4a4]
movzx eax, word [esi + 4]
add esi, 4
xor ecx, ecx
test ax, ax
je 0x42faff
mov edx, eax
movzx eax, dx
lea esi, [esi + 2]
shl ecx, 4
add ecx, eax
mov edx, ecx
and edx, 0xf0000000
je 0x42faf5
mov eax, edx
shr eax, 0x18
xor eax, edx
xor ecx, eax
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x42fad7
push 0x10
push 0x11
lea eax, [edi + 0x6e4]
push eax
push ecx
call fcn.00462bed
add esp, 0x10
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f910
push str.initruntime_DataPath
call fcn.0043f830
push str.initruntime_SetBuildNo
call fcn.0043f7a0
add esp, 8
cmp word [0x4cc378], 0
je 0x42fb61
mov ecx, 0x4cc378
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fb50
sub ecx, edx
sar ecx, 1
jne 0x42fbc3
xor ecx, ecx
cmp byte [0x4c5a72], cl
je 0x42fb75
mov eax, dword [0x4c5a74]
test eax, eax
cmovne ecx, eax
push 0x200
lea eax, [ebp - 0x618]
xorps xmm0, xmm0
push eax
push ecx
movlpd qword [ebp - 0x874], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x874]
lea ecx, [ebp - 0x618]
call fcn.0043f670
movzx eax, word [ebp - 0x86e]
push eax
push str._04d
push 0x200
push 0x4cc378
call fcn.004350b0
add esp, 0x10
push 0x4cc378
lea eax, [edi + 0x706]
push 0xb
push eax
call fcn.0045daf0
push str.initruntime_SetBuildNo
call fcn.0043f830
push str.initruntime_SetCommandLine
call fcn.0043f7a0
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
add esp, 0x14
call esi
call esi
test eax, eax
mov ecx, 0x49badc
cmovne ecx, eax
mov dword [ebp - 0x870], ecx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fc10
sub ecx, edx
sar ecx, 1
mov dword [edi + 0x720], ecx
lea eax, [ecx + 1]
push eax
lea ecx, [edi + 0x724]
mov dword [ebp - 0x86c], eax
call fcn.00435000
cmp byte [edi + 0x838], 0
lea ecx, [edi + 0x728]
jne 0x42fc4f
mov ecx, dword [edi + 0x724]
mov eax, dword [ebp - 0x86c]
add ecx, 4
add eax, eax
push eax
push dword [ebp - 0x870]
push ecx
call fcn.0045b7a0
add esp, 0xc
lea eax, [edi + 0x71c]
lea ecx, [edi + 0x840]
push eax
call fcn.0042d2b0
lea ecx, [edi + 0x840]
call fcn.00434fb0
push str.initruntime_SetCommandLine
call fcn.0043f830
push str.initruntime_CheckConfig
call fcn.0043f7a0
mov esi, dword [ebp - 0x868]
lea eax, [ebp - 0x861]
add esp, 8
mov byte [ebp - 0x861], 0
mov ecx, edi
push eax
push esi
call fcn.00431880
mov bl, al
neg bl
push str.initruntime_CheckConfig
sbb bl, bl
and bl, bh
call fcn.0043f830
add esp, 4
cmp byte [ebp - 0x861], 0
jne 0x42fd00
push str.initruntime_SetProcessShortName
call fcn.0043f7a0
add esp, 4
mov ecx, edi
push esi
call fcn.004309b0
neg al
push str.initruntime_SetProcessShortName
sbb al, al
and bl, al
call fcn.0043f830
add esp, 4
push str.initruntime_CheckIgnoreCancel
call fcn.0043f7a0
add esp, 4
cmp byte [edi + 0xcd2], 0
jne 0x42fd36
mov eax, dword [edi]
mov ecx, edi
push str.outlook.exe
call dword [eax + 4]
push eax
call fcn.00462244
add esp, 8
test eax, eax
jne 0x42fd36
mov byte [edi + 0xd44], 1
push str.initruntime_CheckIgnoreCancel
call fcn.0043f830
add esp, 4
lea ecx, [ebp - 0x860]
call fcn.00434790
lea edx, [ebp - 0x860]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.00436660
cmp byte [edi + 0xa80], 0
lea eax, [edi + 0x970]
jne 0x42fd77
mov eax, dword [edi + 0x96c]
add eax, 4
push str.explorer.exe
push eax
call fcn.00462244
add esp, 8
test eax, eax
je 0x42fdba
cmp byte [edi + 0xa80], 0
lea eax, [edi + 0x970]
jne 0x42fda1
mov eax, dword [edi + 0x96c]
add eax, 4
push str.searchui.exe
push eax
call fcn.00462244
add esp, 8
test eax, eax
je 0x42fdba
xor al, al
jmp 0x42fdbc
mov al, 1
mov byte [edi + 0xd45], al
xor esi, esi
mov eax, dword [str.Notepad.exe]
test eax, eax
je 0x42fe0b
nop dword [eax]
cmp byte [edi + 0xa80], 0
lea ecx, [edi + 0x970]
jne 0x42fde5
mov ecx, dword [edi + 0x96c]
push eax
lea eax, [ecx + 4]
push eax
call fcn.00462244
add esp, 8
test eax, eax
je 0x42fe04
mov eax, dword [esi*4 + 0x497084]
inc esi
test eax, eax
jne 0x42fdd0
jmp 0x42fe0b
mov byte [edi + 0x2209], 1
test bl, bl
jne 0x42fe21
mov ecx, dword [ebp - 0x868]
push 0x49bdc8
call fcn.0042c400
jmp 0x42fe2a
mov byte [edi + 0xcd0], 1
mov bl, 1
cmp byte [ebp - 0x744], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x42fe56
mov eax, dword [ebp - 0x858]
lea ecx, [ebp - 0x854]
cmp eax, ecx
je 0x42fe56
push eax
call fcn.0045dc2d
add esp, 4
mov al, bl
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.0045a329
mov esp, ebp
pop ebp
ret 4
call fcn.0045a1f0
int3