Function at 0x404842
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x404b05
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404b05
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x404b05
push str.MAPISendMail
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
je 0x404b05
push dword [0x41ace4]
lea ecx, [ebp - 0xc]
call fcn.0040108c
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.0040104d
push dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
push str.AP
call fcn.00401374
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.0040104d
lea ecx, [ebp - 4]
call fcn.004010f0
test eax, eax
jne 0x404944
lea ecx, [ebp + 0x10]
call fcn.00401041
mov esi, 0x104
lea ecx, [ebp + 0x10]
push esi
call fcn.004019f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.00401a6e
push dword [0x41ace4]
lea ecx, [ebp + 0x10]
call fcn.004011a4
push str..zip
lea ecx, [ebp + 0x10]
call fcn.004011a4
push ebx
push ebx
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.0040104d
mov ecx, dword [ebp - 0x10]
call fcn.00404b0e
lea eax, [ebp + 0x10]
lea ecx, [ebp - 4]
push eax
call fcn.00401100
lea ecx, [ebp + 0x10]
call fcn.00401a9f
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x380]
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x178]
push eax
call esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x27c]
push eax
call esi
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
or dword [ebp - 0x3c], 0xffffffff
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.0040104d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004050c0
lea eax, [ebp - 0x178]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x38], eax
call fcn.004019f3
push 0xc
mov dword [ebp - 0x34], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
push 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x27c]
pop esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x4c], esi
call fcn.004010f0
test eax, eax
je 0x4049d1
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x44]
push 0x41e274
lea ecx, [ebp - 8]
mov dword [ebp - 0x48], eax
call fcn.0040104d
push dword [ebp - 0xc]
lea ecx, [ebp - 8]
push str.AP
call fcn.00401374
push 0x41e164
lea ecx, [ebp - 0x18]
call fcn.0040108c
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x24]
push eax
call fcn.0040104d
push eax
lea eax, [ebp - 0xc]
push eax
push str._siteFreeware_
lea ecx, [ebp - 0x28]
call fcn.0040108c
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040470c
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00405d53
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00405d53
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00405d53
push dword [eax]
lea ecx, [ebp - 8]
push str.IN
call fcn.00401374
lea ecx, [ebp + 0x10]
call fcn.00401a9f
lea ecx, [ebp + 0xc]
call fcn.00401a9f
lea ecx, [ebp - 0x10]
call fcn.00401a9f
lea ecx, [ebp - 0x20]
call fcn.00401a9f
lea ecx, [ebp - 0x28]
call fcn.00401a9f
lea ecx, [ebp - 0x24]
call fcn.00401a9f
lea eax, [ebp + 0x10]
push eax
call fcn.0040470c
pop ecx
push dword [eax]
lea ecx, [ebp - 8]
push str.DL
call fcn.00401374
lea ecx, [ebp + 0x10]
call fcn.00401a9f
push ebx
lea ecx, [ebp - 8]
call fcn.004019f3
mov dword [ebp - 0x6c], eax
push ebx
lea eax, [ebp - 0x74]
push 9
push eax
push dword [ebp + 8]
push ebx
call dword [ebp - 0x2c]
cmp eax, ebx
je 0x404acf
cmp eax, esi
je 0x404acf
cmp eax, 3
jne 0x404ad1
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00401a9f
lea ecx, [ebp - 8]
call fcn.00401a9f
lea ecx, [ebp - 0x1c]
call fcn.00401a9f
lea ecx, [ebp - 4]
call fcn.00401a9f
lea ecx, [ebp - 0x14]
call fcn.00401a9f
lea ecx, [ebp - 0xc]
call fcn.00401a9f
mov al, bl
jmp 0x404b07
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc