Function at 0x1011a310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016148c
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x101c2db4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x18c], ebx
test esi, esi
je 0x1011a893
cmp byte [esi], bl
je 0x1011a893
cmp byte [ebp + 0x14], bl
je 0x1011a41c
cmp dword [0x101dbdb4], 1
jl 0x1011a3fe
push 0x8a9
push str.F:companyglog_master_srclogging.cc
lea ecx, [ebp - 0x140]
call fcn.10116d80
mov eax, dword [eax + 4]
push esi
push str._to
push edi
mov edi, dword [ebp - 0x188]
add eax, 0x7538
push str._BODY:
push edi
mov dword [ebp - 4], ebx
mov ebx, 1
push str.Trying_to_send_TITLE:
push eax
mov dword [ebp - 0x18c], ebx
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
jmp 0x1011a400
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x1011a43d
lea ecx, [ebp - 0x140]
and ebx, 0xfffffffe
call fcn.101173d0
jmp 0x1011a43d
push esi
push edi
push eax
push str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
push 2
call fcn.101386da
add esp, 4
push eax
call fcn.10028190
mov edi, dword [ebp - 0x188]
add esp, 0x14
push 0xffffffffffffffff
push 0
push dword [0x101c2dd4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10028b90
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
jne 0x1011a47d
push 9
push str._bin_mail
lea ecx, [ebp - 0x28]
call fcn.10028f20
push esi
lea ecx, [ebp - 0x58]
call fcn.10029020
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.10029020
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1011ac90
mov edi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1011ac90
mov esi, eax
push 0x1019f644
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10025f30
push esi
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
call fcn.101165e0
push 0x101b4d5c
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 7
push eax
call fcn.10116650
push edi
push eax
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 8
push eax
call fcn.101165e0
add esp, 0x40
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1011a527
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.10029170
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x1011a554
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10029170
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x1011a587
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10029170
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x1011a5c0
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.10029170
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x1011a5f9
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.10029170
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1011a629
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10029170
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0x10
cmp eax, 0x10
jb 0x1011a654
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10029170
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
je 0x1011a6d4
cmp dword [0x101dbdb4], 4
jl 0x1011a6bd
push 0x8b8
push str.F:companyglog_master_srclogging.cc
lea ecx, [ebp - 0x140]
call fcn.10116d80
mov eax, dword [eax + 4]
lea ecx, [ebp - 0xe8]
push ecx
add eax, 0x7538
mov byte [ebp - 4], 0x11
push str.Mailing_command:
or ebx, 2
push eax
mov dword [ebp - 0x18c], ebx
call fcn.1002ec50
add esp, 8
push eax
call fcn.100302d0
add esp, 8
mov dword [ebp - 4], 0x10
test bl, 2
je 0x1011a6d4
lea ecx, [ebp - 0x140]
call fcn.101173d0
cmp dword [ebp - 0xd4], 0x10
lea eax, [ebp - 0xe8]
push str.wrbt
cmovae eax, dword [ebp - 0xe8]
push eax
call fcn.1014d337
mov esi, eax
add esp, 8
test esi, esi
je 0x1011a80f
mov edx, dword [ebp - 0x190]
test edx, edx
je 0x1011a726
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1011a710
push esi
sub ecx, edi
push ecx
push 1
push edx
call fcn.10138d38
add esp, 0x10
push esi
call fcn.1014d263
add esp, 4
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x1011a7f5
call fcn.1013855a
push dword [eax]
lea eax, [ebp - 0x100]
push eax
call fcn.1011ae40
add esp, 8
cmp byte [ebp + 0x14], bl
je 0x1011a7c3
mov esi, eax
push 2
push 0x8c4
push str.F:companyglog_master_srclogging.cc
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x12
call fcn.10116de0
mov eax, dword [eax + 4]
push esi
push 0x101b4cd8
push dword [ebp - 0x184]
add eax, 0x7538
mov byte [ebp - 4], 0x13
push str.Problems_sending_mail_to
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.100302d0
add esp, 8
lea ecx, [ebp - 0x140]
call fcn.101173d0
jmp 0x1011a7ea
cmp dword [eax + 0x14], 0x10
jb 0x1011a7cb
mov eax, dword [eax]
push eax
push dword [ebp - 0x184]
push str.Problems_sending_mail_to__s:__s_n
push 2
call fcn.101386da
add esp, 4
push eax
call fcn.10028190
add esp, 0x10
lea ecx, [ebp - 0x100]
call fcn.10029130
lea ecx, [ebp - 0xe8]
call fcn.10029130
lea ecx, [ebp - 0x28]
call fcn.10029130
mov al, bl
jmp 0x1011a895
cmp byte [ebp + 0x14], 0
je 0x1011a862
push 2
push 0x8ce
push str.F:companyglog_master_srclogging.cc
lea ecx, [ebp - 0x180]
call fcn.10116de0
push dword [ebp - 0x184]
mov eax, dword [eax + 4]
add eax, 0x7538
mov byte [ebp - 4], 0x14
push str.Unable_to_send_mail_to
push eax
call fcn.1002ec50
add esp, 8
push eax
call fcn.1002ec50
add esp, 8
lea ecx, [ebp - 0x180]
call fcn.101173d0
jmp 0x1011a880
push dword [ebp - 0x184]
push str.Unable_to_send_mail_to__s_n
push 2
call fcn.101386da
add esp, 4
push eax
call fcn.10028190
add esp, 0xc
lea ecx, [ebp - 0xe8]
call fcn.10029130
lea ecx, [ebp - 0x28]
call fcn.10029130
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011480c
mov esp, ebp
pop ebp
ret