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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43454b
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 0x14], 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 esi, dword [ebp + 8]
mov dword [ebp - 0x874], esi
je 0x4036d9
mov al, 1
jmp 0x403c68
mov ecx, str.initruntime_safemode
mov bh, 1
call fcn.0040a1d0
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
setne al
mov byte [edi + 8], al
call fcn.0040a260
mov ecx, str.initruntime_installpath
call fcn.0040a1d0
push esi
mov ecx, edi
call fcn.00403ea0
mov bl, al
neg bl
sbb bl, bl
and bl, bh
call fcn.0040a260
mov ecx, str.initruntime_TempPath
call fcn.0040a1d0
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00418cc0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x874]
mov esi, eax
push 0x446774
call fcn.00402750
push esi
push 0x446fa4
push eax
call fcn.0040af90
mov esi, dword [ebp - 0x874]
add esp, 0xc
xor bh, bh
jmp 0x40381e
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403790
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21e], 0x5c
jne 0x4037c7
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x403c86
xor eax, eax
mov word [ebp + ecx - 0x21c], ax
sub esp, 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x744]
push 0
push eax
call fcn.00407d90
lea eax, [ebp - 0x744]
push eax
lea ecx, [edi + 0x254]
call fcn.00408170
cmp byte [ebp - 0x628], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40381c
mov eax, dword [ebp - 0x73c]
lea ecx, [ebp - 0x738]
cmp eax, ecx
je 0x40381c
push eax
call fcn.0041fd4b
add esp, 4
mov bh, 1
call fcn.0040a260
mov ecx, str.initruntime_VistaIE7
call fcn.0040a1d0
push ecx
mov ecx, edi
and bl, bh
call fcn.00403c90
mov bh, al
neg bh
sbb bh, bh
and bh, bl
mov byte [ebp - 0x86d], bh
call fcn.0040a260
mov ecx, str.initruntime_DataPath
call fcn.0040a1d0
push esi
mov ecx, edi
call fcn.00403f60
test al, al
jne 0x40386b
mov byte [ebp - 0x86d], al
jmp 0x403929
call fcn.0040a3e0
test al, al
je 0x403897
push str.initruntime_ProfilePath
mov dword [ebp - 0x878], str.initruntime_ProfilePath
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.00411af0
mov ecx, eax
call fcn.00411e00
push esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00404410
test al, al
jne 0x4038b2
mov byte [ebp - 0x86d], al
jmp 0x403917
xor eax, eax
lea ebx, [edi + 0x6e4]
mov word [ebx], ax
lea esi, [edi + 0x4a8]
cmp byte [edi + 0x5b8], al
jne 0x4038d1
mov esi, dword [edi + 0x4a4]
movzx eax, word [esi + 4]
add esi, 4
xor ecx, ecx
test ax, ax
je 0x403909
mov edx, eax
movzx eax, dx
lea esi, [esi + 2]
shl ecx, 4
add ecx, eax
mov edx, ecx
and edx, 0xf0000000
je 0x4038ff
mov eax, edx
shr eax, 0x18
xor eax, edx
xor ecx, eax
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x4038e1
push 0x10
push 0x11
push ebx
push ecx
call fcn.0041fc50
add esp, 0x10
lea ecx, [ebp - 0x878]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a330
call fcn.0040a260
mov ecx, str.initruntime_SetBuildNo
call fcn.0040a1d0
cmp word [0x4585a8], 0
je 0x403961
mov ecx, 0x4585a8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403950
sub ecx, edx
sar ecx, 1
jne 0x4039c3
xor ecx, ecx
cmp byte [0x450a34], cl
je 0x403975
mov eax, dword [0x450a38]
test eax, eax
cmovne ecx, eax
push 0x200
lea eax, [ebp - 0x61c]
xorps xmm0, xmm0
push eax
push ecx
movlpd qword [ebp - 0x87c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x87c]
lea ecx, [ebp - 0x61c]
call fcn.0040a0a0
movzx eax, word [ebp - 0x876]
push eax
push str._04d
push 0x200
push 0x4585a8
call fcn.00409fb0
add esp, 0x10
push 0x4585a8
lea eax, [edi + 0x706]
push 0xb
push eax
call fcn.0041fc78
add esp, 0xc
call fcn.0040a260
mov ecx, str.initruntime_SetCommandLine
call fcn.0040a1d0
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
call esi
test eax, eax
mov ecx, 0x44242c
cmovne ecx, eax
mov dword [ebp - 0x878], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a05
sub ecx, edx
sar ecx, 1
mov dword [edi + 0x720], ecx
lea ebx, [ecx + 1]
push ebx
lea ecx, [edi + 0x724]
call fcn.0040b140
cmp byte [edi + 0x838], 0
lea ecx, [edi + 0x728]
jne 0x403a3e
mov ecx, dword [edi + 0x724]
lea eax, [ebx + ebx]
add ecx, 4
push eax
push dword [ebp - 0x878]
push ecx
call fcn.00418740
add esp, 0xc
lea eax, [edi + 0x71c]
lea ecx, [edi + 0x840]
push eax
call fcn.00408170
mov eax, dword [edi + 0x844]
lea ebx, [edi + 0x848]
inc eax
mov ecx, ebx
push eax
call fcn.0040b140
cmp byte [ebx + 0x114], 0
je 0x403a89
add ebx, 4
jmp 0x403a8b
mov ebx, dword [ebx]
mov esi, dword [edi + 0x844]
xor ecx, ecx
test esi, esi
jle 0x403abb
nop word [eax + eax]
movzx edx, word [ebx + ecx*2 + 4]
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x403ab6
lea eax, [edx + 0x20]
mov word [ebx + ecx*2 + 4], ax
inc ecx
cmp ecx, esi
jl 0x403aa0
call fcn.0040a260
mov ecx, str.initruntime_CheckConfig
call fcn.0040a1d0
mov esi, dword [ebp - 0x874]
lea eax, [ebp - 0x86e]
push eax
push esi
mov ecx, edi
mov byte [ebp - 0x86e], 0
call fcn.00405640
mov bl, al
neg bl
sbb bl, bl
and bl, byte [ebp - 0x86d]
call fcn.0040a260
cmp byte [ebp - 0x86e], 0
jne 0x403b1d
mov ecx, str.initruntime_SetProcessShortName
call fcn.0040a1d0
push esi
mov ecx, edi
call fcn.00404870
neg al
sbb al, al
and bl, al
call fcn.0040a260
mov ecx, str.initruntime_CheckIgnoreCancel
call fcn.0040a1d0
cmp byte [edi + 0xcd2], 0
jne 0x403b50
mov eax, dword [edi]
mov ecx, edi
push str.outlook.exe
call dword [eax + 4]
push eax
call fcn.0041b951
add esp, 8
test eax, eax
jne 0x403b50
mov byte [edi + 0xd44], 1
call fcn.0040a260
lea ecx, [ebp - 0x86c]
call fcn.0040abd0
lea edx, [ebp - 0x86c]
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.0040caf0
cmp byte [edi + 0xa80], 0
lea eax, [edi + 0x970]
jne 0x403b89
mov eax, dword [edi + 0x96c]
add eax, 4
push str.explorer.exe
push eax
call fcn.0041b951
add esp, 8
test eax, eax
je 0x403bcc
cmp byte [edi + 0xa80], 0
lea eax, [edi + 0x970]
jne 0x403bb3
mov eax, dword [edi + 0x96c]
add eax, 4
push str.searchui.exe
push eax
call fcn.0041b951
add esp, 8
test eax, eax
je 0x403bcc
xor al, al
jmp 0x403bce
mov al, 1
mov byte [edi + 0xd45], al
xor esi, esi
mov eax, dword [str.Notepad.exe]
test eax, eax
je 0x403c1b
nop
cmp byte [edi + 0xa80], 0
lea ecx, [edi + 0x970]
jne 0x403bf5
mov ecx, dword [edi + 0x96c]
push eax
lea eax, [ecx + 4]
push eax
call fcn.0041b951
add esp, 8
test eax, eax
je 0x403c14
mov eax, dword [esi*4 + 0x442500]
inc esi
test eax, eax
jne 0x403be0
jmp 0x403c1b
mov byte [edi + 0x2209], 1
test bl, bl
jne 0x403c31
mov ecx, dword [ebp - 0x874]
push 0x446738
call fcn.00402750
jmp 0x403c3a
mov byte [edi + 0xcd0], 1
mov bl, 1
cmp byte [ebp - 0x750], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x403c66
mov eax, dword [ebp - 0x864]
lea ecx, [ebp - 0x860]
cmp eax, ecx
je 0x403c66
push eax
call fcn.0041fd4b
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 - 0x14]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret 4
call fcn.00417067
int3