Function at 0x480a30
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4d602b
mov eax, dword fs:[0]
push eax
mov eax, 0x218c
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x2188], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ec0b4]
xor eax, esp
push eax
lea eax, [esp + 0x21a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x21b0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x21b4]
xor ebp, ebp
cmp eax, ebp
jne 0x480a8f
xor ebx, ebx
mov dword [esp + 0x1c], ebx
jmp 0x480aaf
push 0x400
lea ecx, [esp + 0xda0]
push ecx
push eax
call fcn.00487240
lea edx, [esp + 0xd9c]
mov dword [esp + 0x1c], edx
mov ebx, edx
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [esp + 0x38], edi
cmp edi, ebp
je 0x480edd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push edi
call esi
push str.MAPIResolveName
push edi
mov dword [esp + 0x2c], eax
call esi
push str.MAPIFreeBuffer
mov esi, eax
push edi
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x44], eax
cmp dword [esp + 0x24], ebp
je 0x480ed6
cmp esi, ebp
je 0x480ed6
cmp eax, ebp
je 0x480ed6
cmp ebx, ebp
je 0x480da2
cmp byte [ebx], 0x2e
jne 0x480da2
inc ebx
cmp byte [ebx], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ebx
jne 0x480b38
mov dword [esp + 0x1c], ebp
mov ebx, ebp
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x480b5a
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x480b5a
push ebp
call eax
lea eax, [esp + 0x119c]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [esp + 0x20]
push 0x800
lea ecx, [esp + 0x5a0]
push ecx
push edx
call fcn.00487240
push 1
lea eax, [esp + 0x5a0]
push eax
call fcn.00461460
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x94]
push edx
push 0x104
lea eax, [esp + 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, dword [esp + 0x3c]
xor eax, eax
push 0x30
lea edx, [esp + 0x64]
lea ecx, [esp + 0x94]
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], esi
call fcn.004c2670
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
xor esi, esi
mov dword [esp + 0x34], esi
xor edi, edi
lea eax, [esp + 0x54]
mov dword [esp + 0x38], edi
add esp, 0xc
mov dword [esp + 0x88], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x21a8], ebp
cmp ebx, ebp
je 0x480de5
push 1
lea ecx, [esp + 0x2c]
call fcn.0046e560
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
lea ecx, [eax + eax*2]
lea ebp, [edx + ecx*8]
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov eax, dword [str.SMTP:]
mov cx, word [0x4dd13c]
mov dword [esp + 0x194], eax
mov eax, ebx
mov word [esp + 0x198], cx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x480c88
lea edi, [esp + 0x194]
sub eax, ecx
mov esi, ecx
dec edi
jmp 0x480ca0
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x480ca0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x4dd134
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004c6270
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x480cdf
lea ebx, [ebx]
movsx edx, byte [ebx + 1]
inc ebx
push edx
call fcn.0047f8c0
test al, al
jne 0x480cd0
lea eax, [esp + 0x194]
push 0x4dd134
push eax
call fcn.004c6270
add esp, 8
test eax, eax
je 0x480cfb
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
push 0
mov esi, 1
push esi
lea edx, [esp + 0x1a5]
push edx
push 0
push 0
mov dword [ebp + 4], esi
call dword [esp + 0x58]
test eax, eax
jne 0x480dac
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 0
je 0x480d49
mov edx, dword [eax + 8]
push edx
call fcn.004d225b
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [eax + 0xc], 0
je 0x480d62
mov eax, dword [eax + 0xc]
push eax
call fcn.004d225b
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [eax + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x14], 0
je 0x480d9b
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x480d9b
push eax
call fcn.004c2cc7
mov dword [ebp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
push edx
push ecx
push eax
call fcn.004c2da0
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
call dword [esp + 0x48]
jmp 0x480dbf
mov byte [esp + 0x17], 0
jmp 0x480b38
lea edx, [esp + 0x194]
push edx
call fcn.004d225b
add esp, 4
mov dword [ebp + 0xc], eax
add dword [esp + 0x80], esi
test ebx, ebx
jne 0x480c39
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
xor ebp, ebp
mov esi, eax
xor ecx, ecx
cmp ebx, ebp
sete cl
push ebp
lea edx, [esp + 0x64]
lea ecx, [ecx*8 + 1]
push ecx
push edx
push ebp
push ebp
call dword [esp + 0x38]
test eax, eax
sete bl
cmp edi, ebp
jbe 0x480e4b
add esi, 0xc
lea esp, [esp]
mov eax, dword [esi - 4]
cmp eax, ebp
je 0x480e20
push eax
call fcn.004c23c4
add esp, 4
mov eax, dword [esi]
cmp eax, ebp
je 0x480e2f
push eax
call fcn.004c23c4
add esp, 4
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x480e3f
push eax
call fcn.004c23c4
add esp, 4
add esi, 0x18
sub edi, 1
jne 0x480e10
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x119c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x480e8a
push str.SetDllDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x480e8a
push 0x4d89fc
call eax
test bl, bl
je 0x480ea1
cmp byte [esp + 0x17], 0
je 0x480eba
mov edx, dword [esp + 0x20]
push edx
call fcn.0043cde0
jmp 0x480eba
mov eax, dword [esp + 0x20]
push eax
push 0x4de
call fcn.00475cc0
push eax
push ebp
call fcn.004adf30
add esp, 0xc
mov dword [esp + 0x21a8], 0xffffffff
cmp esi, ebp
je 0x480ed2
push esi
call fcn.004c23c4
add esp, 4
mov al, bl
jmp 0x480edf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
mov ecx, dword [esp + 0x21a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2188]
xor ecx, esp
call fcn.004c1c22
add esp, 0x2198
ret 8