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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x412809
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x1c]
push dword [eax + 0xc]
mov dword [esp + 0x40], eax
push dword [eax + 0x10]
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
mov dword [esp + 0xe0], 0
call fcn.0040e865
mov esi, eax
mov dword [esp + 0x120], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov byte [esp + 0x120], 1
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
call fcn.00404f10
mov dword [esp + 0xcc], eax
mov byte [esp + 0x120], 2
lea ecx, [esp + 0xb4]
push esi
mov dword [esp + 0xd8], 1
call fcn.00403de0
mov byte [esp + 0x120], 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x40d9d1
push ecx
call esi
mov eax, dword [esp + 0x2c]
add esp, 4
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
push eax
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 4
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x40d9f5
push ecx
call esi
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call edi
add esp, 4
lea eax, [esp + 0xe4]
xorps xmm0, xmm0
lea ecx, [esp + 0xb4]
movdqa xmmword [esp + 0xe4], xmm0
movq qword [esp + 0xf4], xmm0
push eax
call fcn.00403bd0
mov byte [esp + 0x120], 5
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x40], 0
je 0x40e0ef
xorps xmm0, xmm0
mov dword [esp + 0x84], 0
movdqa xmmword [esp + 0x64], xmm0
movdqa xmmword [esp + 0x74], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x120], 6
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.00404f10
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], 1
push 0
push 0xffffffffffffffff
push str.SendMailResponse
lea ecx, [esp + 0x24]
mov byte [esp + 0x12c], 7
call fcn.0040e865
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
mov byte [esp + 0x124], 8
push eax
lea ecx, [esp + 0x6c]
call fcn.0040eeba
mov byte [esp + 0x120], 7
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x40db05
push ecx
call esi
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 4
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x40db23
push ecx
call esi
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call edi
add esp, 4
xorps xmm0, xmm0
movq qword [esp + 0x5c], xmm0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.00404f10
mov dword [esp + 0x5c], eax
mov byte [esp + 0x120], 9
mov eax, dword [0x417780]
test al, 1
jne 0x40db97
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0xa
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
push 0x4177c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
jmp 0x40dbb0
mov eax, dword [0x417780]
test al, 1
jne 0x40dbf9
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0xb
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
mov byte [esp + 0x124], 9
add esp, 4
mov eax, dword [0x417780]
cmp dword [0x4177a4], 0
je 0x40dc54
test al, 1
jne 0x40dc41
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0xc
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
push 0xffffffffffffffff
push 0x4177c0
push 0x4177b0
call esi
jmp 0x40dbb0
sub esp, 8
lea eax, [esp + 0xd4]
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
push eax
call fcn.0040c7c0
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x5c], esp
mov dword [esp + 0x54], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
push 0xffffffffffffffff
lea eax, [esp + 0x108]
mov byte [esp + 0x144], 0xf
push eax
call fcn.0040eeba
mov byte [esp + 0x140], 0x10
mov eax, dword [0x417780]
test al, 1
jne 0x40dd04
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x14c], 0x11
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x140], 0x10
mov ecx, 0x417788
mov byte [esp + 0x140], 9
call fcn.0040c520
mov eax, dword [0x417780]
test al, 1
jne 0x40dd5a
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0x12
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
push 0x4177c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x417780]
test al, 1
jne 0x40dda9
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0x13
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
push 0x4177d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x417780]
test al, 1
jne 0x40ddfd
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0x14
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
mov byte [esp + 0x124], 9
add esp, 4
mov eax, dword [0x417780]
cmp dword [0x4177ac], 0
jne 0x40de58
test al, 1
jne 0x40de45
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0x15
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
push 0xffffffffffffffff
push 0x4177d8
push 0x4177bc
call esi
jmp 0x40ddb4
test al, 1
jne 0x40de97
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0x16
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
lea eax, [esp + 0x5c]
mov ecx, 0x417788
push eax
call fcn.0040c610
mov eax, dword [0x417780]
test al, 1
jne 0x40deea
or eax, 1
mov dword [0x417780], eax
push 0x68
push 0
push 0x417788
mov byte [esp + 0x12c], 0x17
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.004077f0
push 0x412b80
call fcn.00410757
add esp, 4
mov byte [esp + 0x120], 9
push 0x4177d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
push dword [eax + 4]
call fcn.00404e40
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x80]
mov dword [eax], eax
mov eax, dword [esp + 0x80]
mov dword [eax + 8], eax
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x88], 0
call fcn.00404f40
xorps xmm0, xmm0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
movdqa xmmword [esp + 0x98], xmm0
movq qword [esp + 0xa8], xmm0
call fcn.00403c50
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0x128], 0x1a
call fcn.0040eeba
lea ecx, [esp + 0x94]
mov byte [esp + 0x120], 0x1b
call fcn.0040f6b2
mov byte [esp + 0x120], 0x1d
xor eax, eax
mov ecx, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x40dff7
push ecx
call esi
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
add esp, 4
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x40e015
push ecx
call esi
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call edi
add esp, 4
lea ecx, [esp + 0x94]
call fcn.0040f6b2
mov esi, dword [esp + 0x98]
cmp esi, 0x10000000
jb 0x40e05f
push 0
push 0xffffffffffffffff
push str.Size_overflow_exception
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], vtable.RSException.0
call fcn.0040e865
push 0x415f70
lea eax, [esp + 0x44]
push eax
call sub.MSVCR120.dll__CxxThrowException
lea ecx, [esp + 0x94]
call fcn.0040f6b2
mov ecx, dword [esp + 0x30]
push esi
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 4]
call fcn.00405c60
lea ecx, [esp + 0x94]
call fcn.004037a0
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
push eax
push dword [eax]
lea eax, [esp + 0x3c]
push eax
call fcn.00404a80
push dword [esp + 0x5c]
call edi
add esp, 4
lea ecx, [esp + 0x64]
call fcn.0040e120
lea ecx, [esp + 0xe4]
call fcn.004037a0
lea ecx, [esp + 0xb4]
call fcn.0040e120
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00410663
mov esp, ebp
pop ebp
ret 8
push 0
push 0xffffffffffffffff
push str.Connection_Handler_not_created
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], vtable.RSException.0
call fcn.0040e865
push 0x415f70
lea eax, [esp + 0x44]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3