Function at 0x401500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x40b850
push 0xffffffffffffffff
push 0x4989b0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x2c], edi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4a310a
mov dword [esp + 0x70], 1
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str..FileToEmail.cpp
mov byte [esp + 0x74], 2
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.AddFile
mov byte [esp + 0x78], 3
call fcn.004012d5
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], 1
call fcn.0040130c
mov ebp, dword [esp + 0x70]
push str.Other
push ebp
mov byte [esp + 0x70], 4
call fcn.00451abe
add esp, 8
test eax, eax
sete al
test al, al
je 0x40b8fc
lea eax, [esp + 0x74]
push eax
mov ecx, edi
call fcn.004012d0
cmp dword [ebp - 0xc], 0
jne 0x40b9d3
lea ecx, [esp + 0x74]
call fcn.0040115e
lea ecx, [esp + 0x74]
call fcn.004012f8
lea ecx, [esp + 0x48]
call fcn.00419801
mov ecx, dword [esp + 0x74]
push 0
push ecx
mov bl, 5
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], bl
call fcn.0041988d
test eax, eax
je 0x40b9c0
mov eax, dword [edi + 0xd8]
lea ecx, [edi + 0xd0]
lea edx, [esp + 0x74]
push edx
push eax
call fcn.0041713d
mov eax, dword [esp + 0x74]
push 0x5c
push eax
call fcn.00450c71
add esp, 8
test eax, eax
jne 0x40b96e
or eax, 0xffffffff
jmp 0x40b972
sub eax, dword [esp + 0x74]
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00401168
mov edx, dword [edi + 0xec]
lea ecx, [edi + 0xe4]
push eax
push edx
mov byte [esp + 0x70], 6
call fcn.0041713d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x68], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b9c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 4
call fcn.00419825
jmp 0x40bd34
mov edx, dword [esp + 0x74]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x40b9fd
lea eax, [ecx - 1]
test eax, eax
jl 0x40ba19
cmp eax, ecx
jg 0x40ba19
cmp byte [eax + edx], 0x5c
je 0x40b9fd
push 0x4a33c8
lea ecx, [esp + 0x78]
call fcn.0040126c
xor esi, esi
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ba23
push 0x80004005
call fcn.004013ed
push 0x80070057
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x68], 7
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ba52
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x68], 8
call fcn.004141fe
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ba81
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x68], 9
mov bl, 0xb
add esi, 1
push esi
lea ecx, [esp + 0x20]
push 0x4a36b0
push ecx
mov dword [esp + 0x3c], esi
call fcn.0040105f
mov edx, dword [esp + 0x28]
add esp, 0xc
push str.ERROR
push edx
push ebp
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00419143
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0xa
call fcn.00401339
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x68], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bafd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.0040115e
lea ecx, [esp + 0x14]
call fcn.004012f8
mov ecx, dword [esp + 0x14]
push str.ERROR
push ecx
call fcn.00451abe
add esp, 8
test eax, eax
setne al
test al, al
je 0x40bca6
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x40bca6
mov edx, dword [esp + 0x74]
push eax
push edx
lea eax, [esp + 0x20]
push 0x4a3058
push eax
call fcn.0040105f
add esp, 0x10
lea ecx, [esp + 0x48]
call fcn.00419801
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x70], bl
call fcn.0041988d
test eax, eax
je 0x40bc98
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x40bbe7
push 0x2a
push eax
call fcn.00451f6c
add esp, 8
test eax, eax
je 0x40bbe7
mov ecx, dword [esp + 0x18]
sub eax, ecx
jne 0x40bbe7
cmp dword [ecx - 0xc], eax
jle 0x40bbe7
push 0x3f
push ecx
call fcn.00451f6c
add esp, 8
test eax, eax
je 0x40bbe7
sub eax, dword [esp + 0x18]
jne 0x40bbe7
mov eax, dword [edi + 0xd8]
lea ecx, [edi + 0xd0]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0041713d
mov eax, dword [edi + 0xec]
lea ecx, [edi + 0xe4]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0041713d
jmp 0x40bc98
lea esi, [edi + 0xd0]
add edi, 0xe4
lea ecx, [esp + 0x48]
call fcn.00419499
mov ebp, eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
call fcn.00419a2c
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x70], 0xc
call fcn.0041713d
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x68], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00419abc
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x70], 0xd
call fcn.0041713d
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x68], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40bbf3
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 9
call fcn.00419825
mov ecx, dword [esp + 0x14]
push str.ERROR
push ecx
call fcn.00451abe
add esp, 8
test eax, eax
setne al
test al, al
jne 0x40ba98
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x68], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bcea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x68], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x68], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 1
call fcn.004013f2
lea eax, [ebp - 0x10]
mov byte [esp + 0x68], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x68], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8