Function at 0x403657
Capabilities:
Get common file path

Disassembly:
mov eax, 0x411678
call fcn.0040cf08
sub esp, 0xda0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4c], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 1
xor ebx, ebx
pop esi
lea ecx, [ebp - 0x1a4]
mov dword [edi + 0x94], esi
mov dword [0x4151b8], ebx
call fcn.00402b8b
mov eax, 0x104
lea ecx, [ebp - 0x1a4]
push eax
push eax
call fcn.00402e3f
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1a4]
call fcn.00402e5b
lea ecx, [ebp - 0x40]
call fcn.00401000
push ebx
push ebx
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 4], ebx
call fcn.00402c19
push eax
lea ecx, [ebp - 0x40]
call fcn.004011dc
cmp eax, ebx
mov dword [ebp - 0x48], eax
jne 0x403746
push ebx
push str.Sfx_Cabinet
push ebx
push str..cab
push ebx
push esi
lea ecx, [ebp - 0xdac]
call fcn.00403047
lea ecx, [ebp - 0xdac]
call fcn.004030e7
cmp eax, esi
jne 0x403d93
lea eax, [ebp - 0xd5c]
lea ecx, [ebp - 0x3d0]
push eax
call fcn.00402b98
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x1a4]
push eax
call fcn.00402bd3
lea ecx, [ebp - 0x1a4]
call fcn.00402c19
mov dword [edi + 0x88], eax
push 0x8080
mov dword [ebp - 0x54], 0x8000
call fcn.004064de
mov esi, eax
pop ecx
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x1a4]
push eax
mov dword [ebp - 0x28], esi
call fcn.00402c19
push eax
push esi
push dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.004014fc
test eax, eax
jne 0x403796
push 0x30
push 0x41439c
push 0x41435c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
jmp 0x4039b3
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 0x44], ebx
call fcn.00402b8b
mov eax, dword [ebp - 0x28]
cmp byte [eax], 0x43
jne 0x403994
cmp byte [eax + 1], 0x52
jne 0x403994
cmp byte [eax + 2], 0x43
jne 0x403994
cmp byte [eax + 3], 0x46
jne 0x403994
add eax, 6
xor ecx, ecx
mov dword [ebp - 0x44], 1
mov ch, byte [eax + 1]
mov cl, byte [eax]
add eax, 4
mov dword [ebp - 0x30], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
inc eax
mov dword [ebp - 0x1c], ecx
inc eax
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
add eax, 4
mov dword [ebp - 0x20], ecx
movzx ecx, byte [eax]
lea esi, [eax + ecx + 1]
xor eax, eax
lea ecx, [ebp - 0x6c]
mov ah, byte [esi + 1]
mov al, byte [esi]
inc esi
mov edi, eax
inc esi
movzx eax, di
mov dword [ebp - 0x18], esi
add esi, eax
mov dword [ebp - 0x14], esi
add esi, 8
call fcn.0040295e
xor eax, eax
cmp di, bx
sete al
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00402ae7
lea ecx, [ebp - 0x2c8]
call fcn.00403db0
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x2c0]
push eax
push 0x4151c0
call fcn.004042a9
mov eax, dword [0x4151c8]
push ebx
push 0x40418e
push dword [ebp - 0x24]
push 0x65
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x4039f8
lea eax, [ebp - 0x2ac]
lea ecx, [ebp - 0x4d8]
push eax
call fcn.00402bd3
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x88]
push eax
call fcn.0040267c
movzx eax, word [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.004026dc
lea ecx, [ebp - 0x4d8]
call fcn.00402e76
push eax
lea ecx, [ebp - 0x4d8]
call fcn.00402c19
push eax
lea ecx, [ebp - 0x88]
call fcn.004026f7
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x9c]
push eax
call fcn.00402768
movzx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.004027ac
cmp di, bx
jbe 0x403920
push dword [ebp - 0x18]
lea ecx, [ebp - 0x9c]
call fcn.00402805
push dword [ebp - 0x14]
lea ecx, [ebp - 0x9c]
call fcn.0040282d
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push esi
push ebx
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00402896
cmp byte [esi], 0x4d
jne 0x4039be
cmp byte [esi + 1], 0x53
jne 0x4039be
cmp byte [esi + 2], 0x43
jne 0x4039be
cmp byte [esi + 3], 0x46
jne 0x4039be
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.004027a1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.004026b2
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2c8], 0x412238
mov byte [ebp - 4], bl
call fcn.00402991
mov edi, dword [ebp - 0x4c]
movsx ax, byte [esi + 0x1e]
test al, 4
jne 0x403a12
push 0x30
push 0x41439c
push 0x414328
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x28]
call fcn.004064e9
pop ecx
jmp 0x403d93
push 0x30
push 0x414318
push 0x4142f0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x28]
call fcn.004064e9
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.004027a1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.004026b2
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x2c8], 0x412238
mov byte [ebp - 4], bl
call fcn.00402991
jmp 0x403d93
add esi, 0x28
push 4
push str.MLOG
push esi
call fcn.0040e210
add esp, 0xc
test eax, eax
jne 0x403d93
mov eax, dword [esi + 4]
add esi, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [esi - 4]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], ebx
call fcn.0040e190
inc eax
pop ecx
mov dword [ebp - 0x18], eax
je 0x403a56
movsx ecx, byte [esi]
add dword [ebp - 0x14], ecx
inc esi
dec eax
jne 0x403a4c
push esi
mov dword [edi + 0x8c], esi
call fcn.0040e190
inc eax
pop ecx
add dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x403a75
movsx ecx, byte [esi]
add dword [ebp - 0x14], ecx
inc esi
dec eax
jne 0x403a6b
lea eax, [edi + 0x98]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0040e190
inc eax
pop ecx
add dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x403a9c
movsx ecx, byte [esi]
add dword [ebp - 0x14], ecx
inc esi
dec eax
jne 0x403a92
lea eax, [edi + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
lea eax, [edi + 0x98]
jne 0x403ac1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x403ad8
cmp byte [eax], 0xff
jne 0x403ad8
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [edi + 0x94], ebx
push esi
mov dword [ebp - 0x58], esi
call fcn.0040e190
inc eax
pop ecx
add dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x403af4
movsx ecx, byte [esi]
add dword [ebp - 0x14], ecx
inc esi
dec eax
jne 0x403aea
push esi
mov dword [ebp - 0x20], esi
call fcn.0040e190
inc eax
pop ecx
add dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x403b10
movsx ecx, byte [esi]
add dword [ebp - 0x14], ecx
inc esi
dec eax
jne 0x403b06
push esi
mov dword [ebp - 0x24], esi
call fcn.0040e190
inc eax
pop ecx
add dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x403b2c
movsx ecx, byte [esi]
add dword [ebp - 0x14], ecx
inc esi
dec eax
jne 0x403b22
push esi
mov dword [ebp - 0x1c], esi
call fcn.0040e190
pop ecx
inc eax
mov ecx, dword [ebp - 0x18]
add ecx, eax
cmp eax, ebx
jbe 0x403b4f
mov dword [ebp - 0x18], eax
movsx eax, byte [esi]
add dword [ebp - 0x14], eax
inc esi
dec dword [ebp - 0x18]
jne 0x403b43
movsx eax, byte [esi]
mov dword [edi + 0x90], eax
mov eax, dword [ebp - 0x14]
movsx edx, byte [esi]
add eax, edx
add ecx, 0xd
cmp dword [edi + 0x90], ebx
jne 0x403b95
cmp ecx, dword [ebp - 0x30]
jne 0x403b75
cmp eax, dword [ebp - 0x2c]
je 0x403b95
push 0x2014
push dword [edi + 0x8c]
push 0x414258
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403d93
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403bc0
push 0x2004
push dword [edi + 0x8c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403d93
cmp dword [edi + 0x90], ebx
je 0x403c09
push str.WinVerifyTrust
push 0x4151b8
mov byte [ebp - 4], 5
call fcn.0040353e
pop ecx
pop ecx
push ebx
mov ecx, edi
call fcn.00403ee3
cmp eax, ebx
jne 0x403c06
push 1
mov ecx, edi
call fcn.00403ee3
cmp eax, ebx
jne 0x403c06
jmp 0x403d93
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403c73
mov esi, 0x41222c
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x78], esi
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x4151c0
call fcn.004042a9
mov eax, dword [0x4151c8]
push ebx
push 0x40418e
push dword [ebp - 0x2c]
push 0x7d3
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x403c70
mov dword [ebp - 0x78], esi
jmp 0x403d93
mov byte [ebp - 4], bl
lea esi, [edi + 0x98]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi + 0x97], 0x5c
je 0x403c96
push 0x41420c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0xa4c]
call fcn.0040452d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.0040157f
sub eax, dword [ebp - 0x48]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0xa24], eax
call fcn.00402b98
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0xa20]
push eax
call fcn.00402bd3
push esi
lea ecx, [ebp - 0x3d0]
call fcn.00402b98
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x6f8]
push eax
call fcn.00402bd3
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x704], eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.00402bd3
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0xa44]
push eax
push 0x4151c0
call fcn.004042a9
mov eax, dword [0x4151c8]
push ebx
push 0x40418e
push esi
push 0x66
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x403d63
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x403d7c
push 0x30
push dword [edi + 0x8c]
push dword [ebp - 0x24]
jmp 0x403d75
cmp eax, 2
jne 0x403d7c
push 0x30
push dword [edi + 0x8c]
push 0x414230
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 0x28]
call fcn.004064e9
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa4c]
call fcn.004046b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401030
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret