Function at 0x10046610
Capabilities:
Create thread
Get number of processors
Initialize winsock library
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x101481ab
mov eax, dword fs:[0]
push eax
mov eax, 0x70b8
call fcn.10140530
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x70b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10189710]
xor eax, esp
push eax
lea eax, [esp + 0x70cc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x70dc]
mov eax, dword [esp + 0x70e4]
mov esi, dword [esp + 0x70e0]
mov ebp, dword [esp + 0x70e8]
mov edi, dword [esp + 0x70ec]
push 0x30d4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], 0
call fcn.1012e060
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x6bc1]
push 0
push ecx
mov byte [esp + 0x6bc8], 0
call fcn.1012e060
add esp, 0xc
push 0x103
lea edx, [esp + 0x6ab9]
push 0
push edx
mov byte [esp + 0x6ac0], 0
call fcn.1012e060
add esp, 0xc
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x10047a29
test esi, esi
je 0x10047a29
cmp dword [esp + 0x1c], 0
je 0x10047a29
test ebp, ebp
je 0x10047a29
cmp dword [esp + 0x20], 0
je 0x10047a29
cmp dword [esp + 0x24], 0
je 0x1004672c
mov eax, dword [esp + 0x24]
push 0x30d8
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.10130710
add esp, 0xc
push 0x2c
push esi
mov byte [esp + 0x3004], 0
mov dword [esp + 0x2efc], edi
call fcn.10128490
add esp, 8
test eax, eax
jne 0x10046764
lea edx, [esp + 0x16e0]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10046755
jmp 0x1004681f
xor edi, edi
lea ecx, [esp + 0x639c]
mov dword [esp + 0x18], edi
call fcn.1007ed00
push 1
push 0x2c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x66c0]
push eax
xor cl, cl
mov edx, esi
mov dword [esp + 0x70e4], edi
call fcn.10061f00
or edi, 0xffffffff
add esp, 0x10
cmp dword [esp + 0x18], edi
je 0x1004680c
lea ecx, [esp + 0x66b4]
push 0x40
push ecx
call fcn.10128490
add esp, 8
test eax, eax
je 0x100467e9
push 0
lea ecx, [esp + 0x66b8]
lea edx, [esp + 0x63a0]
call fcn.1007eff0
test eax, eax
je 0x100467e9
push 0
push 0x2c
lea edx, [esp + 0x66bc]
lea ecx, [esp + 0x16e8]
call fcn.1006c030
push 1
push 0x2c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x66c0]
push eax
xor cl, cl
mov edx, esi
call fcn.10061f00
add esp, 0x10
cmp dword [esp + 0x18], edi
jne 0x100467a3
lea ecx, [esp + 0x639c]
mov dword [esp + 0x70d4], edi
call fcn.1007edd0
lea edx, [esp + 0x26e0]
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10046830
lea edx, [esp + 0x8c4]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10046845
push 0x25
push ebp
call fcn.10128490
add esp, 8
test eax, eax
je 0x1004686d
push 1
lea ecx, [esp + 0x8c8]
push ecx
call fcn.100796e0
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xbd4]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10046880
push 0x25
push esi
call fcn.10128490
add esp, 8
test eax, eax
je 0x100468a8
push 1
lea edx, [esp + 0xbd8]
push edx
call fcn.100796e0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x101ab540]
mov byte [esp + eax + 0x9cc], cl
inc eax
test cl, cl
jne 0x100468b0
lea eax, [esp + 0x9cc]
or edi, 0xffffffff
add eax, edi
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100468d0
mov ecx, dword [str.MAILSCAN.INI]
mov edx, dword [0x10163ddc]
mov dword [eax], ecx
mov ecx, dword [0x10163de0]
mov dword [eax + 4], edx
mov dl, byte [0x10163de4]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x101ab540]
mov byte [esp + eax + 0xad0], cl
inc eax
test cl, cl
jne 0x10046900
lea eax, [esp + 0xad0]
add eax, edi
jmp 0x10046920
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10046920
mov ecx, dword [str.MAIL.INI]
mov edx, dword [0x10163dec]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [eax], ecx
mov cl, byte [0x10163df0]
mov dword [eax + 4], edx
lea edx, [esp + 0x9cc]
push edx
push 0x400
mov byte [eax + 8], cl
lea eax, [esp + 0x6bc4]
push eax
push 0x1014d980
push str.SMTPSendHTMLAsInline
push 0x10156244
call ebp
xor ecx, ecx
cmp byte [esp + 0x6bbc], 0x30
lea edx, [esp + 0x9cc]
push edx
push 0x104
lea eax, [esp + 0x6abc]
push eax
setne cl
push 0x1014d980
push str.SendHELO
push 0x10156244
mov dword [0x101b5314], ecx
call ebp
lea ecx, [esp + 0x6ab4]
push ecx
call fcn.10128238
add esp, 4
cmp eax, 1
jne 0x100469c0
mov dword [esp + 0x30], eax
lea edx, [esp + 0x9cc]
push edx
push 0x64
lea eax, [esp + 0x40]
push eax
push 0x1014d5e3
push str.MailScanID
push 0x10156244
mov byte [esp + 0x50], 0
call ebp
lea ecx, [esp + 0x9cc]
push ecx
push 0x104
lea edx, [esp + 0x2cf0]
push edx
push 0x1014d5e3
push str.smtp_port
push str.smtpsend
call ebp
lea eax, [esp + 0x9cc]
push eax
push 0x104
lea ecx, [esp + 0x2ae8]
push ecx
push 0x1014d5e3
push str.smtp_server
push str.smtpsend
call ebp
lea edx, [esp + 0x16e0]
push 0x2c
push edx
xor ebx, ebx
call fcn.10128490
add esp, 8
test eax, eax
je 0x10046a4e
mov ebx, 1
lea eax, [esp + 0x16e0]
push 0x40
push eax
call fcn.10128490
add esp, 8
test eax, eax
je 0x10046b1a
test ebx, ebx
jne 0x10046a89
lea ecx, [eax + 1]
lea esi, [esp + 0x12e0]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x10046a78
mov byte [eax], dl
jmp 0x10046b1a
push 1
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
lea edx, [esp + 0x66c0]
push edx
xor cl, cl
lea edx, [esp + 0x16f0]
mov dword [esp + 0x28], 0
call fcn.10061f00
add esp, 0x10
cmp dword [esp + 0x18], edi
je 0x10046b1a
lea esp, [esp]
lea eax, [esp + 0x66b4]
push 0x40
push eax
call fcn.10128490
add esp, 8
test eax, eax
jne 0x10046b00
push 1
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
lea edx, [esp + 0x66c0]
push edx
xor cl, cl
lea edx, [esp + 0x16f0]
call fcn.10061f00
add esp, 0x10
cmp dword [esp + 0x18], edi
jne 0x10046ac0
jmp 0x10046b1a
inc eax
lea edx, [esp + 0x12e0]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10046b10
lea eax, [esp + 0x26e0]
push 0x2c
push eax
call fcn.10128490
add esp, 8
test eax, eax
je 0x10046b33
mov byte [eax], 0
lea ecx, [esp + 0x26e0]
push 0x40
push ecx
call fcn.10128490
add esp, 8
test eax, eax
je 0x10046b61
lea ecx, [eax + 1]
lea esi, [esp + 0xee0]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x10046b55
mov byte [eax], dl
mov al, byte [esp + 0x26e0]
test al, al
jne 0x10046b94
cmp byte [esp + 0x16e0], al
jne 0x10046b94
lea edx, [esp + 0x2c]
push edx
xor edi, edi
xor esi, esi
mov ebx, str.Both_from_and_to_are_blank__n
call fcn.10042440
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x10047a2b
cmp byte [esp + 0xee0], 0
jne 0x10046bc7
cmp byte [esp + 0x12e0], 0
jne 0x10046bc7
lea eax, [esp + 0x2c]
push eax
xor edi, edi
xor esi, esi
mov ebx, str.Both_from_domain_and_to_domain_are_blank__n
call fcn.10042440
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x10047a2b
test al, al
jne 0x10046c83
test ebx, ebx
jne 0x10046bf2
lea eax, [esp + 0x16e0]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + 0x1000], cl
inc eax
test cl, cl
jne 0x10046be0
jmp 0x10046c83
push 1
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
lea edx, [esp + 0x66c0]
push edx
xor cl, cl
lea edx, [esp + 0x16f0]
mov dword [esp + 0x28], 0
call fcn.10061f00
add esp, 0x10
cmp dword [esp + 0x18], edi
je 0x10046c83
lea eax, [esp + 0x66b4]
push 0x40
push eax
call fcn.10128490
add esp, 8
test eax, eax
jne 0x10046c62
push 1
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
lea edx, [esp + 0x66c0]
push edx
xor cl, cl
lea edx, [esp + 0x16f0]
call fcn.10061f00
add esp, 0x10
cmp dword [esp + 0x18], edi
jne 0x10046c22
jmp 0x10046c83
xor eax, eax
jmp 0x10046c70
mov cl, byte [esp + eax + 0x66b4]
mov byte [esp + eax + 0x26e0], cl
inc eax
test cl, cl
jne 0x10046c70
cmp byte [esp + 0x16e0], 0
jne 0x10046ca1
lea eax, [esp + 0x26e0]
mov cl, byte [eax]
mov byte [eax - 0x1000], cl
inc eax
test cl, cl
jne 0x10046c94
cmp byte [esp + 0xee0], 0
jne 0x10046cbf
lea eax, [esp + 0x12e0]
mov cl, byte [eax]
mov byte [eax - 0x400], cl
inc eax
test cl, cl
jne 0x10046cb2
cmp byte [esp + 0x12e0], 0
jne 0x10046cdd
lea eax, [esp + 0xee0]
mov cl, byte [eax]
mov byte [eax + 0x400], cl
inc eax
test cl, cl
jne 0x10046cd0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2ef0], eax
test ebx, ebx
jne 0x10046d5c
lea ecx, [esp + 0x16e0]
push 0x40
push ecx
call fcn.10128490
add esp, 8
test eax, eax
jne 0x10046d5c
lea edi, [esp + 0x16e0]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10046d10
mov dx, word [0x10156738]
lea eax, [esp + 0x12e0]
mov word [edi], dx
mov edx, eax
jmp 0x10046d30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10046d30
lea edi, [esp + 0x16e0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10046d41
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
lea eax, [esp + 0x26e0]
push 0x40
push eax
call fcn.10128490
add esp, 8
test eax, eax
jne 0x10046dcc
lea edi, [esp + 0x26e0]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10046d80
mov cx, word [0x10156738]
lea eax, [esp + 0xee0]
mov word [edi], cx
mov edx, eax
jmp 0x10046da0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10046da0
lea edi, [esp + 0x26e0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10046db1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or edi, 0xffffffff
push 0x3ff
lea edx, [esp + 0x66b9]
push 0
push edx
mov byte [esp + 0x66c0], 0
call fcn.1012e060
add esp, 0xc
push 0x103
lea eax, [esp + 0x64a9]
push 0
push eax
mov byte [esp + 0x64b0], 0
call fcn.1012e060
add esp, 0xc
lea ecx, [esp + 0x9cc]
push ecx
push 0x400
lea edx, [esp + 0x66bc]
push edx
push 0x1014d5e3
push str.MailScanPInfo
push 0x10156244
xor esi, esi
call ebp
mov al, byte [esp + 0x66b4]
cmp al, 0x33
jne 0x10046e77
push 0x104
lea eax, [esp + 0x64a8]
push eax
push 0x1014d5e3
mov edx, str.ExchangeSMTP
mov ecx, str.MailScan
call fcn.1005ffb0
mov al, byte [esp + 0x66c0]
add esp, 0xc
cmp byte [esp + 0x64a4], 0x32
jne 0x10046e77
mov esi, 1
test al, al
je 0x10047278
cmp al, 0x31
jne 0x10046f9d
lea ecx, [esp + 0x9cc]
push ecx
push 0x400
lea edx, [esp + 0x66bc]
push edx
push 0x1014d5e3
push str.AppPath
push 0x10156244
call ebp
lea eax, [esp + 0x66b4]
add eax, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10046eb6
mov ecx, dword [str.mdaemon.ini]
mov edx, dword [0x10163ec0]
mov dword [eax], ecx
mov ecx, dword [0x10163ec4]
mov dword [eax + 4], edx
mov dl, byte [0x10163ec8]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x66bc]
call fcn.10060eb0
add esp, 8
test eax, eax
jne 0x10047409
lea eax, [esp + 0x66b4]
push eax
push 0xa
lea ecx, [esp + 0x2cf0]
push ecx
push 0x1014d5e3
push str.smtpin
push str.Ports
call ebp
lea edx, [esp + 0x66b4]
push edx
push 0x400
lea eax, [esp + 0x6bc4]
push eax
push 0x10163edc
push str.BindtoIP
push str.Domain
call ebp
cmp byte [esp + 0x6bbc], 0
je 0x10047409
lea ecx, [esp + 0x6bbc]
push 0x10163ef4
push ecx
call fcn.10135887
add esp, 8
test eax, eax
jne 0x10047409
lea edx, [esp + 0x66b4]
push edx
push 0x104
lea eax, [esp + 0x2ae8]
push eax
push str.127.0.0.1
push str.DomainIP
push str.Domain
call ebp
jmp 0x10047409
cmp al, 0x32
jne 0x10047177
lea ecx, [esp + 0x18]
push ecx
push str.SoftwarePaulSmithVPOP3
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10047409
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x638c], eax
mov dword [esp + 0x6390], eax
lea eax, [esp + 0x638c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.SMTPClientPort
mov edi, 8
push edx
mov dword [esp + 0x34], edi
call esi
mov ecx, dword [esp + 0x6388]
push 0xa
lea eax, [esp + 0x2cec]
push eax
push ecx
call fcn.10145409
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x638c], eax
mov dword [esp + 0x6390], eax
lea eax, [esp + 0x638c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.SameAllowedIPAddress
push edx
mov dword [esp + 0x34], edi
call esi
xor eax, eax
cmp byte [esp + 0x6388], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x638c], eax
mov dword [esp + 0x6388], eax
jne 0x1004708b
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x638c]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.POP3AllowedIPAddress
push eax
jmp 0x100470a9
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x638c]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.SMTPAllowedIPAddress
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x6388], 0
mov byte [esp + 0x2ae0], 0
je 0x1004716f
xor eax, eax
mov byte [esp + 0x6390], 0
mov dword [esp + 0x6391], eax
mov dword [esp + 0x6395], eax
mov byte [esp + 0x6399], al
xor ebx, ebx
lea ecx, [ecx]
movzx ecx, byte [esp + ebx + 0x6388]
push 0xa
lea eax, [esp + 0x6394]
push eax
push ecx
call fcn.10145409
add esp, 0xc
cmp byte [esp + 0x2ae0], 0
je 0x10047132
lea edi, [esp + 0x2ae0]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10047120
mov dx, word [0x10157178]
mov word [edi], dx
lea eax, [esp + 0x6390]
mov edx, eax
jmp 0x10047140
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047140
lea edi, [esp + 0x2ae0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047151
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
cmp ebx, 4
rep movsb byte es:[edi], byte [esi]
jl 0x100470f0
or edi, 0xffffffff
jmp 0x10047409
cmp al, 0x33
jne 0x10047278
test esi, esi
jne 0x10047278
push 0x103
lea eax, [esp + 0x63a1]
push esi
push eax
mov byte [esp + 0x63a8], 0
call fcn.1012e060
add esp, 0xc
xor eax, eax
jmp 0x100471b0
mov cl, byte [eax + 0x101ab540]
mov byte [esp + eax + 0x639c], cl
inc eax
test cl, cl
jne 0x100471b0
lea eax, [esp + 0x639c]
add eax, edi
jmp 0x100471d0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100471d0
mov ecx, dword [str.SMTP.INI]
mov edx, dword [0x10163f7c]
mov dword [eax], ecx
mov cl, byte [0x10163f80]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x63a4]
call fcn.10060eb0
add esp, 8
test eax, eax
jne 0x1004722e
lea edx, [esp + 0x639c]
push edx
push 0xa
lea eax, [esp + 0x2cf0]
push eax
push 0x1014d5e3
push str.Port
push str.SMTP
call ebp
lea ebx, [esp + 0x639c]
call fcn.10046330
push 7
mov ecx, ebx
push str.0.0.0.0
push ecx
call fcn.1013661b
add esp, 0xc
test eax, eax
jne 0x1004725c
mov byte [esp + 0x2ae0], al
jmp 0x10047409
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x639c]
mov byte [esp + eax + 0x2ae0], cl
inc eax
test cl, cl
jne 0x10047260
jmp 0x10047409
cmp esi, 1
je 0x1004728d
test al, al
je 0x10047409
cmp al, 0x34
jne 0x10047409
push 1
push 0
xor edx, edx
lea ecx, [esp + 0xad8]
call fcn.10060eb0
add esp, 8
test eax, eax
jne 0x10047357
lea edx, [esp + 0xad0]
push edx
push 0xa
lea eax, [esp + 0x2cf0]
push eax
push 0x1014d5e3
push str.warningstosmtpport
push 0x10156244
call ebp
lea esi, [esp + 0x2ce8]
call fcn.10072140
push 0x10156244
lea esi, [esp + 0x9d0]
lea eax, [esp + 0x2cec]
mov ebx, str.warningstosmtpport
call fcn.1005f6b0
add esp, 4
lea ecx, [esp + 0xad0]
push ecx
push 0x104
lea edx, [esp + 0x2ae8]
push edx
push 0x1014d5e3
push str.warningstosmtpserver
push 0x10156244
call ebp
lea esi, [esp + 0x2ae0]
call fcn.10072140
push 0x10156244
lea esi, [esp + 0x9d0]
lea eax, [esp + 0x2ae4]
mov ebx, str.warningstosmtpserver
call fcn.1005f6b0
add esp, 4
lea eax, [esp + 0xad0]
call fcn.1005ad10
cmp byte [esp + 0x2ce8], 0
jne 0x10047393
lea eax, [esp + 0x9cc]
push eax
push 0x104
lea ecx, [esp + 0x2cf0]
push ecx
push 0x1014d5e3
push str.warningstosmtpport
push 0x10156244
call ebp
lea esi, [esp + 0x2ce8]
call fcn.10072140
cmp byte [esp + 0x2ae0], 0
jne 0x100473cf
lea edx, [esp + 0x9cc]
push edx
push 0x104
lea eax, [esp + 0x2ae8]
push eax
push 0x1014d5e3
push str.warningstosmtpserver
push 0x10156244
call ebp
lea esi, [esp + 0x2ae0]
call fcn.10072140
lea ecx, [esp + 0x2ae0]
push str.38.138.61.195
push ecx
call fcn.10135887
add esp, 8
test eax, eax
je 0x100473f2
cmp byte [esp + 0x2ae0], 0
jne 0x10047409
lea edx, [esp + 0x2ae0]
push edx
lea ecx, [esp + 0x2cec]
call fcn.10088c80
add esp, 4
cmp byte [esp + 0x2be4], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x1004742b
lea eax, [esp + 0x2be4]
push eax
lea ecx, [esp + 0x2ae4]
push ecx
call esi
cmp byte [esp + 0x2dec], 0
je 0x10047447
lea edx, [esp + 0x2dec]
push edx
lea eax, [esp + 0x2cec]
push eax
call esi
lea ecx, [esp + 0x2ce8]
push ecx
call fcn.10128238
xor esi, esi
add esp, 4
cmp eax, esi
jne 0x10047479
mov dx, word [0x101605cc]
mov cl, byte [0x101605ce]
mov word [esp + 0x2ce8], dx
mov byte [esp + 0x2cea], cl
cmp byte [esp + 0x2ae0], 0
jne 0x100474ac
mov edx, dword [str.127.0.0.1]
mov ecx, dword [0x10157e7c]
mov dword [esp + 0x2ae0], edx
mov dx, word [0x10157e80]
mov dword [esp + 0x2ae4], ecx
mov word [esp + 0x2ae8], dx
cmp dword [esp + 0x49c], esi
je 0x100474dc
cmp eax, 0x24b
je 0x100474c7
cmp eax, 0x1d1
jne 0x100475a7
mov eax, dword [esp + 0x24]
mov dword [esp + 0x49c], esi
cmp eax, esi
je 0x100474dc
mov dword [eax + 0x470], esi
cmp dword [0x101c7b40], esi
jne 0x100475a7
lea eax, [esp + 0x3104]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1004753e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x6bc0]
push str.SendSysLog:_WSAStartup_failed__error__d
push ecx
call fcn.10127dc0
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
lea esi, [esp + 0x6bc0]
mov ebx, 0x10158254
xor edi, edi
call fcn.10042440
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x10047a2b
mov dword [0x101c7b40], 1
cmp dword [esp + 0x4a0], esi
je 0x100475a7
push 0x103
lea eax, [esp + 0x64a9]
push esi
push eax
mov byte [esp + 0x64b0], 0
call fcn.1012e060
add esp, 0xc
lea ecx, [esp + 0x64a4]
call fcn.1011d2c0
cmp eax, 1
je 0x100475a7
lea ecx, [esp + 0x64a4]
push ecx
lea edx, [esp + 0x6bc0]
push str._SSL__SSL_Fail_1_:__s
push edx
call fcn.10127dc0
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
jmp 0x1004751f
mov eax, dword [esp + 0x34]
cmp eax, 1
jne 0x100478cc
lea ecx, [esp + 0x2c]
push ecx
call fcn.10042ec0
add esp, 4
mov dword [esp + 0x28], eax
cmp dword [esp + 0x49c], esi
jne 0x10047612
xor edi, edi
lea esi, [esp + 0x16e0]
cmp eax, 1
jne 0x100475e8
lea edx, [esp + 0x2c]
push edx
mov ebx, str.SMTP_Message_sent_successfully_to__s._n
jmp 0x100475f2
lea eax, [esp + 0x2c]
push eax
mov ebx, str.Failed_to_send_SMTP_Message_to__s._n
call fcn.10042440
add esp, 4
call sub.WS2_32.dll_WSACleanup
mov eax, dword [esp + 0x28]
mov dword [0x101c7b40], 0
jmp 0x10047a2b
cmp eax, esi
jne 0x10047659
lea ecx, [esp + 0x2c]
push ecx
xor edi, edi
xor esi, esi
mov ebx, str.Failed_to_SPOOL_SMTP_Message__n
call fcn.10042440
add esp, 4
lea eax, [esp + 0x5b8]
call fcn.1005ad10
lea eax, [esp + 0x4b4]
call fcn.1005ad10
lea eax, [esp + 0x6bc]
call fcn.1005ad10
mov eax, dword [esp + 0x28]
jmp 0x10047a2b
push 0x103
lea edx, [esp + 0x63a1]
push esi
push edx
mov byte [esp + 0x63a8], 0
call fcn.1012e060
add esp, 0xc
push 0x103
lea eax, [esp + 0x65b1]
push esi
push eax
mov byte [esp + 0x65b8], 0
call fcn.1012e060
add esp, 0xc
xor eax, eax
jmp 0x100476a0
mov cl, byte [esp + eax + 0x5b8]
mov byte [esp + eax + 0x639c], cl
inc eax
test cl, cl
jne 0x100476a0
xor eax, eax
jmp 0x100476c0
mov cl, byte [esp + eax + 0x4b4]
mov byte [esp + eax + 0x65ac], cl
inc eax
test cl, cl
jne 0x100476c0
lea eax, [esp + 0x639c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100476e0
sub eax, edx
mov byte [esp + eax + 0x6398], cl
lea eax, [esp + 0x639c]
add eax, edi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10047700
mov ecx, dword [str..MSG]
mov dl, byte [0x10164094]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x65ac]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047723
sub eax, edx
mov byte [esp + eax + 0x65a8], cl
lea eax, [esp + 0x65ac]
add eax, edi
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10047740
mov ecx, dword [str..CMD]
mov dl, byte [0x1015801c]
mov dword [eax], ecx
push 0x3ff
mov byte [eax + 4], dl
lea eax, [esp + 0x66b9]
push 0
push eax
mov byte [esp + 0x66c0], 0
call fcn.1012e060
add esp, 0xc
push 0x103
lea ecx, [esp + 0x64a9]
push 0
push ecx
mov byte [esp + 0x64b0], 0
call fcn.1012e060
add esp, 0xc
push 0
lea edi, [esp + 0x63a0]
lea ebx, [esp + 0x5bc]
call fcn.1007fb10
add esp, 4
test eax, eax
jne 0x10047816
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0x64a8]
call fcn.100652a0
add esp, 4
mov edx, esi
push edx
lea eax, [esp + 0x63a0]
push eax
mov ecx, ebx
push ecx
lea edx, [esp + 0x66c0]
push str.Unable_to_copy_SpoolMsg___s__to___s____s
push edx
call fcn.10127dc0
lea eax, [esp + 0x40]
add esp, 0x14
push eax
lea esi, [esp + 0x66b8]
mov ebx, 0x1014d8cc
xor edi, edi
call fcn.10042440
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x10047a2b
lea eax, [esp + 0x5b8]
call fcn.1005ad10
push 0
lea edi, [esp + 0x65b0]
lea ebx, [esp + 0x4b8]
call fcn.1007fb10
add esp, 4
test eax, eax
jne 0x100478a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0x64a8]
call fcn.100652a0
add esp, 4
mov ecx, esi
push ecx
lea edx, [esp + 0x65b0]
push edx
mov eax, ebx
push eax
lea ecx, [esp + 0x66c0]
push str.Unable_to_copy_SpoolCmd___s__to___s____s
push ecx
call fcn.10127dc0
lea edx, [esp + 0x40]
add esp, 0x14
push edx
lea esi, [esp + 0x66b8]
mov ebx, 0x1014d8cc
xor edi, edi
call fcn.10042440
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x10047a2b
lea eax, [esp + 0x4b4]
call fcn.1005ad10
lea eax, [esp + 0x2c]
push eax
xor edi, edi
xor esi, esi
mov ebx, str.SMTP_Message_spooled_successfully._n
call fcn.10042440
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x10047a2b
push eax
lea ecx, [esp + 0x6fc0]
push 0x10159cd0
push ecx
call fcn.10127dc0
lea eax, [esp + 0x6fc8]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100478f0
sub eax, edx
push eax
push str.___0_dd_
push 0x101a69d4
call fcn.10127dc0
add esp, 0xc
push 0x101948ec
push str.SmtpSendMaxThreadCount
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.WS2_32.dll_bind
call fcn.10059e30
cmp dword [0x101948ec], esi
ja 0x10047937
mov dword [0x101948ec], 0xa
xor ebp, ebp
mov dword [0x101947e4], ebp
call fcn.1007fed0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
cmp dword [esp + 0x34], ebp
jle 0x10047a0f
mov ebx, 0x101b5318
jmp 0x10047960
push 0x30e8
lea edx, [esp + 0x329c]
push ebp
push edx
call fcn.1012e060
inc dword [0x101b5318]
add esp, 0xc
push 0x30d8
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x32b0]
push ecx
mov dword [esp + 0x32a0], ebp
mov dword [esp + 0x32a4], ebp
mov dword [esp + 0x32ac], ebx
call fcn.10130710
add esp, 0xc
lea edx, [esp + 0x3294]
push edx
push ebp
push 0x100464f0
mov dword [esp + 0x32b0], edi
call fcn.10127f7d
add esp, 0xc
mov dword [esp + 0x329c], eax
cmp dword [esp + 0x3298], ebp
jne 0x100479e5
push 1
call esi
cmp dword [esp + 0x3298], ebp
je 0x100479d8
mov eax, dword [0x101b5318]
cmp eax, dword [0x101948ec]
jl 0x10047a04
push 0x64
call esi
mov ecx, dword [0x101b5318]
cmp ecx, dword [0x101948ec]
jge 0x100479f2
inc edi
cmp edi, dword [esp + 0x34]
jl 0x10047960
cmp dword [0x101b5318], ebp
jle 0x10047a23
push 0x64
call esi
cmp dword [0x101b5318], ebp
jg 0x10047a17
mov eax, dword [esp + 0x28]
jmp 0x10047a2b
xor eax, eax
mov ecx, dword [esp + 0x70cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70b0]
xor ecx, esp
call fcn.10127db1
add esp, 0x70c4
ret