Function at 0x11d4e9f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11dcdf06
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, dword [esp + 0xfc]
push edi
mov edi, dword [esp + 0xfc]
xor ebp, ebp
cmp edi, ebp
je 0x11d502d6
cmp esi, ebp
jle 0x11d502d6
mov eax, dword [0x11dfc748]
cmp eax, ebp
je 0x11d4ea4c
push str.New_connecttion_come_connectEx___
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
push 0xfff7
lea ecx, [esp + 0x50]
call fcn.11d60a80
push esi
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call fcn.11d4e840
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x11d4ebcc
lea ecx, [esp + 0x4c]
call fcn.11d60b40
mov esi, dword [esp + 0xf4]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x1c], ebp
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
lea edx, [esp + 0x3c]
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], ebp
call fcn.11d60660
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, ebp
je 0x11d4eb36
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x110]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x10c]
mov ebp, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x108]
push ecx
push edi
push edx
push esi
mov dword [esi + 0x20], eax
call eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x1c], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
xor ebp, ebp
jmp 0x11d4eb99
mov ebx, dword [esi + 0x18]
cmp ebx, ebp
je 0x11d4eb99
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x108]
push edx
mov edx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x108]
push ecx
mov ecx, dword [esp + 0x104]
push edx
push eax
push edi
push ecx
call ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
test eax, 0x800000
je 0x11d4eb99
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
cmp dword [0x11dfc748], ebp
je 0x11d502b8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor edx, edx
push eax
mov dx, word [edi]
push ecx
push edx
push str.TMAILHOOK::connectFunc_1...addr_family__d___bRet__d___errno__d__connectEx_
push str.connectExFunc
push 4
call fcn.11d354f0
add esp, 0x18
jmp 0x11d502b8
call fcn.11d55d10
push esi
mov dword [esp + 0x24], ebp
call fcn.11d78820
add esp, 4
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x11d4ed2d
lea ecx, [esp + 0x4c]
call fcn.11d60b40
mov esi, dword [esp + 0xf4]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], ebp
call fcn.11d60660
mov eax, dword [esp + 0x48]
add esp, 0x10
cmp eax, ebp
je 0x11d4ec97
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x110]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x10c]
mov ebp, dword [esi + 0xc]
push ecx
mov ecx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x108]
push edx
push edi
push ecx
push esi
mov dword [esi + 0x20], eax
call eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x1c], ebx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
xor ebp, ebp
jmp 0x11d4ecfa
mov ebx, dword [esi + 0x18]
cmp ebx, ebp
je 0x11d4ecfa
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
push ecx
mov ecx, dword [esp + 0x108]
push edx
mov edx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x104]
push ecx
push edx
push edi
push eax
call ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
test eax, 0x800000
je 0x11d4ecfa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
cmp dword [0x11dfc748], ebp
je 0x11d502b8
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
push eax
push ecx
xor ecx, ecx
mov cx, word [edi]
push ecx
push str.TMAILHOOK::connectFunc_2...addr_family__d___bRet__d___errno__d__connectEx_
push str.connectExFunc
push 4
call fcn.11d354f0
add esp, 0x18
jmp 0x11d502b8
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x68], ebp
push ecx
call fcn.11d4c5f0
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x34], eax
mov eax, dword [0x11dfc748]
add esp, 8
cmp eax, ebp
je 0x11d4ed93
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x14]
push eax
push str.TMAILHOOK::IP:_0x_lx__Port:__d_connectEx_
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0x14
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc0]
mov dword [esp + 0xbc], ebp
mov dword [esp + 0x58], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ebp
push ecx
mov dword [esp + 0x40], ebp
call ebx
push eax
mov ecx, 0x11df6c08
call fcn.11d47520
mov edi, eax
mov eax, dword [0x11df6e54]
cmp eax, ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
jne 0x11d4edf1
cmp dword [0x11df6e44], ebp
jne 0x11d4edf1
cmp dword [0x11df6e58], ebp
je 0x11d4ee36
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
push eax
mov ecx, 0x11df6b30
call fcn.11d407c0
test eax, eax
je 0x11d4ee36
mov eax, dword [0x11dfc748]
mov dword [esp + 0x34], 1
cmp eax, ebp
je 0x11d4ee36
push 1
push str.IsInTAccCtrllist___d
push str.TAccCtrl
push 4
call fcn.11d354f0
add esp, 0x10
mov eax, dword [0x11df6e60]
mov dword [esp + 0x98], ebp
cmp eax, ebp
mov dword [esp + 0x94], 8
je 0x11d4eee2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
push eax
call esi
push eax
mov ecx, dword [esp + 0x20]
push ecx
call ebx
push eax
mov ecx, 0x11df6c78
mov edx, dword [esp + 0x10c]
push edx
call fcn.11d47f20
test eax, eax
je 0x11d4eec0
cmp dword [0x11dfc748], ebp
je 0x11d4f764
mov eax, dword [esp + 0x14]
push eax
call esi
and eax, 0xffff
mov ecx, dword [esp + 0x10]
push eax
push ecx
push str.CCallback::connectEx_NetSecurityCtrl_fobidden_IP:_0x_lx__Port:__d
push str.NetSecurityCtrl
push 4
call fcn.11d354f0
add esp, 0x14
jmp 0x11d4f764
cmp dword [esp + 0x98], ebp
je 0x11d4f31b
mov dword [esp + 0x20], 1
mov dword [esp + 0x48], 5
jmp 0x11d4f31b
cmp dword [0x11df6e54], ebp
je 0x11d4f24c
mov eax, dword [0x11df69e4]
cmp eax, ebp
mov eax, dword [0x11df6c58]
je 0x11d4f0e3
mov edx, eax
and edx, 1
cmp dl, 1
je 0x11d4f0e3
cmp edi, ebp
jne 0x11d4f03e
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
jne 0x11d4f03e
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
push eax
mov ecx, 0x11df6c08
call fcn.11d46660
test eax, eax
jne 0x11d4f03e
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x11d4f03e
push ecx
call ebx
push eax
call fcn.11d55df0
add esp, 4
test eax, eax
jne 0x11d4f03e
cmp dword [esp + 0x34], ebp
jne 0x11d4f03e
cmp dword [0x11dfc748], ebp
je 0x11d4f764
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
mov edx, dword [esp + 0x14]
push edx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
push eax
push str.IsInBlacklist___d
push str.Security_Proxy
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x10
cmp eax, ebp
je 0x11d4f764
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6c08
call fcn.11d46660
push eax
push str.IsInWhiteList___d
push str.Security_Proxy
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x10
cmp eax, ebp
je 0x11d4f764
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x14]
push eax
push str.Security_Proxy_003_IP:_0x_lx__Port:__d
push str.Security_Proxy
push 4
call fcn.11d354f0
add esp, 0x14
jmp 0x11d4f764
cmp dword [0x11dfc748], ebp
je 0x11d4f31b
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
mov edx, dword [esp + 0x14]
push edx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
push eax
push str.IsInBlacklist___d
push str.Security_Proxy
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x10
cmp eax, ebp
je 0x11d4f31b
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6c08
call fcn.11d46660
push eax
push str.IsInWhiteList___d
push str.Security_Proxy
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x10
cmp eax, ebp
je 0x11d4f31b
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x14]
push eax
push str.Security_Proxy_004_IP:_0x_lx__Port:__d
push str.Security_Proxy
jmp 0x11d4f311
cmp dword [0x11df6a1c], ebp
je 0x11d4f156
and eax, 1
cmp al, 1
je 0x11d4f156
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
mov edx, dword [esp + 0x14]
push edx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
je 0x11d4f31b
cmp edi, ebp
jne 0x11d4f31b
cmp dword [0x11dfc748], ebp
je 0x11d4f13d
push 0x582
push str.CCallback::connectExCallback:_line__lu__SetEncryption_
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x10
push 1
call fcn.11d350b0
add esp, 4
mov dword [0x11df6e48], eax
call fcn.11d5a470
jmp 0x11d4f31b
cmp dword [0x11df6c5c], ebp
je 0x11d4f212
cmp edi, ebp
jne 0x11d4f206
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
je 0x11d4f206
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
push eax
mov ecx, 0x11df6c08
call fcn.11d46660
test eax, eax
jne 0x11d4f206
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x11d4f206
push ecx
call ebx
push eax
call fcn.11d55df0
add esp, 4
test eax, eax
jne 0x11d4f206
cmp dword [esp + 0x34], ebp
jne 0x11d4f206
cmp dword [0x11dfc748], ebp
je 0x11d4f764
mov ecx, dword [esp + 0x14]
push ecx
call esi
and eax, 0xffff
mov edx, dword [esp + 0x10]
push eax
push edx
push str.Security_Proxy_005_IP:_0x_lx__Port:__d
push str.Security_Proxy
push 4
call fcn.11d354f0
add esp, 0x14
jmp 0x11d4f764
cmp dword [0x11df6c5c], ebp
jne 0x11d4f31b
cmp edi, ebp
je 0x11d4f31b
mov eax, dword [0x11dfc748]
mov dword [esp + 0x30], ebp
cmp eax, ebp
je 0x11d4f31b
mov eax, dword [esp + 0x14]
push eax
call esi
and eax, 0xffff
mov ecx, dword [esp + 0x10]
push eax
push ecx
push str.Security_Proxy_005_IP:_0x_lx__Port:__d_Set_bProtocolAnalysisIP_FALSE
push str.Security_Proxy
jmp 0x11d4f311
cmp dword [0x11df6e44], ebp
je 0x11d4f31b
mov eax, dword [0x11df69e4]
cmp eax, ebp
mov eax, dword [0x11df6c58]
je 0x11d4f274
mov edx, eax
and edx, 1
cmp dl, 1
jne 0x11d4f31b
cmp dword [0x11df6a1c], ebp
je 0x11d4f2dc
and eax, 1
cmp al, 1
je 0x11d4f2dc
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
je 0x11d4f31b
cmp edi, ebp
jne 0x11d4f31b
cmp dword [0x11dfc748], ebp
je 0x11d4f2c6
push 0x5b6
push str.CCallback::connectExCallback:_line__lu__SetEncryption_
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x10
push 1
call fcn.11d350b0
add esp, 4
mov dword [0x11df6e48], eax
call fcn.11d5a470
jmp 0x11d4f31b
cmp dword [0x11df6c5c], ebp
jne 0x11d4f31b
cmp edi, ebp
je 0x11d4f31b
mov eax, dword [0x11dfc748]
mov dword [esp + 0x30], ebp
cmp eax, ebp
je 0x11d4f31b
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x14]
push eax
push str.CCallback::connectCallback_IP:_0x_lx__Port:__d_Set_bProtocolAnalysisIP_FALSE
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x14
push str.GlobalTEC_OCULAR__AGENT_V3_MUTEX_TMAILGATEWAY
push ebp
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, dword [sym.imp.WS2_32.dll_htons]
cmp eax, ebp
je 0x11d4f6f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov eax, dword [esp + 0xf8]
push ecx
push edx
push 0x1008
push 0xffff
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [0x11dfc748], ebp
je 0x11d4f3aa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call esi
and eax, 0xffff
mov ecx, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push str.TMAILHOOK::connectFunc:_New_Connect_come__SOCKET__d___IP_0x_lx___PORT__d___SOCKTYPE__d___TCP:1__UDP:2__connectEx_
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0x1c
cmp dword [esp + 0x18], 1
jne 0x11d4f92a
cmp dword [0x11df6e60], ebp
jne 0x11d4f794
cmp dword [0x11df69e4], ebp
jne 0x11d4f3e1
cmp dword [0x11df6a1c], ebp
je 0x11d4f466
cmp dword [0x11df6e48], ebp
je 0x11d4f466
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
push eax
mov ecx, 0x11df6b70
call fcn.11d41a60
test eax, eax
je 0x11d4f466
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x11d4f422
push ecx
call ebx
push eax
call fcn.11d55df0
add esp, 4
test eax, eax
je 0x11d4f466
mov dword [esp + 0x3c], 1
call fcn.11d5a470
mov eax, dword [0x11dfc748]
mov dword [esp + 0x38], 1
cmp eax, ebp
je 0x11d4f466
mov ecx, dword [esp + 0x14]
push ecx
call esi
and eax, 0xffff
mov edx, dword [esp + 0x10]
push eax
push edx
push str.connectExFunc::IsInProxylist_IP:_0x_lx__Port:__d_Limit_Upload
push str.Proxy
push 4
call fcn.11d354f0
add esp, 0x14
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6ae8
call fcn.11d3efd0
push str.127.0.0.1
mov dword [esp + 0x5c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x11d4f894
push ecx
call ebx
push eax
call fcn.11d55df0
add esp, 4
test eax, eax
jne 0x11d4f894
cmp dword [0x11df6a1c], ebp
je 0x11d4f5a8
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
call fcn.11d54db0
add esp, 4
test eax, eax
je 0x11d4f4e0
cmp dword [0x11df6e40], ebp
jne 0x11d4f5a0
cmp dword [0x11dfc748], ebp
je 0x11d4f502
mov eax, dword [0x11df69e4]
push eax
push str.g_GWGatewayProcess.m_bIsGatewayProcess__d_...._connectEx__r_n
push 0x11de02f8
push 1
call fcn.11d354f0
add esp, 0x10
cmp dword [0x11df69e4], ebp
jne 0x11d4f53a
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
mov edx, dword [esp + 0x14]
push edx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
jne 0x11d4f532
cmp dword [esp + 0x34], ebp
je 0x11d4f826
cmp dword [0x11df69e4], ebp
je 0x11d4f578
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
jne 0x11d4f578
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
mov ecx, 0x11df6c68
call fcn.11d47cc0
test eax, eax
je 0x11d4f578
cmp dword [esp + 0x34], ebp
je 0x11d4f85d
cmp dword [0x11df6e44], ebp
je 0x11d4f5ba
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
je 0x11d4f5ba
jmp 0x11d4f5b0
cmp dword [0x11df6a1c], ebp
jne 0x11d4f5ba
cmp dword [0x11df6e44], ebp
je 0x11d4f5ba
mov dword [0x11df6e4c], 1
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
call fcn.11d54db0
add esp, 4
test eax, eax
je 0x11d4f630
cmp dword [0x11df6e40], ebp
je 0x11d4f630
call fcn.11d4c3f0
push eax
call edi
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.11d4e9a0
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
cmp dword [0x11dfc748], ebp
je 0x11d4f989
push str.connectFunc_SMTP_Redirect
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0xc
jmp 0x11d4f92a
cmp dword [esp + 0x34], ebp
jne 0x11d4f6ba
cmp dword [0x11df6e44], ebp
je 0x11d4f92a
cmp dword [0x11df6e54], ebp
je 0x11d4f670
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c8c0
test eax, eax
je 0x11d4f92a
mov ecx, 0x11df69e0
call fcn.11d3a9b0
test eax, eax
jne 0x11d4f6ba
mov ecx, 0x11df69e0
call fcn.11d3a9f0
test eax, eax
jne 0x11d4f6ba
cmp dword [0x11df6a1c], ebp
je 0x11d4f92a
mov edx, dword [esp + 0x14]
push edx
call esi
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
je 0x11d4f92a
mov ecx, dword [esp + 0x64]
push ecx
call edi
push eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.11d4e9a0
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0xd0], eax
jmp 0x11d4f989
cmp dword [0x11dfc748], ebp
je 0x11d4f740
push str.GlobalTEC_OCULAR__AGENT_V3_MUTEX_TMAILGATEWAY
lea ecx, [esp + 0x2c]
call fcn.11d665e0
mov edi, eax
mov byte [esp + 0xec], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
push eax
push edx
push str.CCallback::connectCallback:_can_not_open_the_mutex__s_errno:__d_connectEx__r_n
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x14
lea ecx, [esp + 0x28]
mov byte [esp + 0xec], 0
call fcn.11d66d80
cmp dword [0x11df6e44], ebp
jne 0x11d4f764
cmp dword [esp + 0x34], ebp
jne 0x11d4f764
cmp dword [0x11df6e60], ebp
je 0x11d4f989
cmp dword [esp + 0x20], ebp
je 0x11d4f989
mov ecx, dword [esp + 0xf4]
mov eax, 0x274d
mov dword [esp + 0xec], 0xffffffff
mov dword [ecx + 0x14], ebp
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x28], eax
lea ecx, [esp + 0x4c]
call fcn.11d60ab0
xor eax, eax
jmp 0x11d5040a
mov eax, dword [esp + 0x14]
push eax
call esi
and eax, 0xffff
push eax
call fcn.11d54db0
add esp, 4
test eax, eax
je 0x11d4f7ea
cmp dword [0x11df6e40], ebp
je 0x11d4f7ea
call fcn.11d4c3f0
push eax
call edi
push eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x104]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.11d4e9a0
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
jmp 0x11d4f989
cmp dword [esp + 0x20], ebp
je 0x11d4f930
mov ecx, dword [esp + 0x64]
push ecx
call edi
push eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.11d4e9a0
add esp, 0x10
mov dword [esp + 0xd0], 1
jmp 0x11d4f92a
cmp dword [0x11dfc748], ebp
je 0x11d4f92a
mov edx, dword [esp + 0x14]
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x14]
push eax
push str.it_is_not_in_the_blacklist__d___d_connectEx_
push 0x11de02f8
push 1
call fcn.11d354f0
add esp, 0x14
jmp 0x11d4f92a
cmp dword [0x11dfc748], ebp
je 0x11d4f92a
mov ecx, dword [esp + 0x14]
push ecx
call esi
and eax, 0xffff
mov edx, dword [esp + 0x10]
push eax
push edx
push str.connectExFunc_It_is_in_WhiteListProcessPort_IP__lu__Port__lu__r_n
push 0x11de02f8
push 1
call fcn.11d354f0
add esp, 0x14
jmp 0x11d4f92a
cmp dword [0x11dfc748], ebp
je 0x11d4f8b0
push str.It_is_local_connecttion__connectEx_
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
call fcn.11d56450
test eax, eax
jne 0x11d4f901
cmp dword [0x11dfc748], ebp
je 0x11d4f8d5
push str.Disable_Local_connecttion______connectEx_
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
mov eax, dword [0x11df6e44]
mov dword [esp + 0x38], 1
cmp eax, ebp
je 0x11d4f909
cmp dword [0x11df69e4], ebp
je 0x11d4f909
mov eax, dword [0x11df6c58]
and eax, 1
cmp al, 1
je 0x11d4f909
call fcn.11d5a470
jmp 0x11d4f909
mov dword [esp + 0x58], 1
cmp dword [0x11dfc748], ebp
je 0x11d4f92a
mov ecx, dword [esp + 0x10]
push ecx
push str.TMAILHOOK::It_is_Local_Addr._addr_0x_lx__n
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x10
cmp dword [esp + 0x20], ebp
jne 0x11d4f989
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x48]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
mov dword [esp + 0x24], ebp
call esi
push eax
mov edx, dword [esp + 0x1c]
push edx
call ebx
push eax
call fcn.11d52ed0
add esp, 0x10
test eax, eax
je 0x11d4f989
mov eax, dword [esp + 0x18]
cmp ax, bp
je 0x11d4f989
push eax
mov dword [esp + 0x24], 1
call edi
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.11d4e9a0
add esp, 0x10
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0xac]
xor edi, edi
mov dword [esp + 0xb4], eax
push ecx
push edx
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0xb4], edi
mov dword [esp + 0xc0], eax
call esi
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, 0x11df6590
call fcn.11d32600
test eax, eax
je 0x11d4fa73
mov ecx, dword [esp + 0xac]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
mov eax, dword [esp + 0xb4]
cmp eax, 0xffffffff
je 0x11d4fa02
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, eax
jmp 0x11d4fa06
mov edi, dword [esp + 0x14]
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d4fa4d
push edi
call esi
and eax, 0xffff
push eax
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov edx, dword [esp + 0x1c]
push edx
call esi
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
push str.connectExFunc_ConnRediPolicy__0x_08X__0x_08X________0x_08X__0x_08X__r_n
push str.IPG_16656
push 1
call fcn.11d354f0
add esp, 0x1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x11d4fa5c
mov ebp, 1
jmp 0x11d4fa73
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x24]
push edi
push ebx
push ecx
push edx
call fcn.11d4e9a0
add esp, 0x10
mov eax, dword [esp + 0xf8]
mov ecx, 0x11df68f0
push eax
call fcn.11d395c0
mov ecx, dword [esp + 0xf8]
push ecx
mov ecx, 0x11df69a0
call fcn.11d38c40
test eax, eax
je 0x11d4fba5
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d4fac4
mov edx, dword [esp + 0xf8]
push edx
push str.CCallback::connectCallback:_socket__u__IsSocketConnected_r_n
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x10
mov dword [esp + 0x20], 0
mov ecx, 0x11df68f0
call fcn.11d398e0
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d4faf3
push str.before_ConnectEx
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
lea ecx, [esp + 0x4c]
call fcn.11d60b40
mov esi, dword [esp + 0xf4]
lea edx, [esp + 0x40]
lea eax, [esp + 0x1c]
push edx
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov ebp, dword [esi + 0x20]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
push eax
xor ebx, ebx
push ecx
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x50], ebx
call fcn.11d60660
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
je 0x11d500d2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x110]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x10c]
mov ebx, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x10c]
push ecx
push edx
push esi
mov dword [esi + 0x20], eax
call eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], edi
mov eax, dword [esp + 0x44]
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], eax
xor ebx, ebx
jmp 0x11d50139
mov eax, dword [esp + 0x20]
test eax, eax
je 0x11d4facc
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d4fbce
push str.CCallback::connectCallback:_Start_to_redirect_the_connection_connectEx__r_n
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0xc
mov cx, word [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
mov word [esp + 0x74], 2
mov dword [esp + 0x76], eax
mov word [esp + 0x76], cx
mov dword [esp + 0x7a], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x7e], eax
test ebp, ebp
mov word [esp + 0x82], ax
je 0x11d4fc0a
mov word [esp + 0x76], di
mov dword [esp + 0x78], ebx
mov ecx, dword [esp + 0xf8]
lea eax, [esp + 0x74]
push eax
push ecx
mov ecx, 0x11df6968
call fcn.11d39100
mov dword [esp + 0xbc], 0x35026200
mov word [esp + 0xc0], 0x10
mov word [esp + 0xc2], 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc8], eax
push edx
mov dword [esp + 0xd0], 1
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x14]
push eax
call esi
mov cx, word [esp + 0x48]
mov word [esp + 0xde], ax
mov word [esp + 0xe0], cx
call fcn.11da03a0
test ebp, ebp
mov word [esp + 0xe2], ax
je 0x11d4fcbd
push ebx
call dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov dword [esp + 0xdc], eax
call esi
mov word [esp + 0xde], ax
mov edx, dword [esp + 0x108]
lea ebx, [edx + 0x28]
push ebx
call fcn.11d78820
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x11d4fd18
mov eax, dword [esp + 0xf8]
push ebp
push eax
mov ecx, 0x11df6550
call fcn.11d31c60
mov ecx, 0xa
lea esi, [esp + 0xbc]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x108]
mov esi, dword [esp + 0x104]
mov edx, ecx
lea edi, [ebp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11df68f0
mov dword [esp + 0x2c], 0
call fcn.11d398e0
lea ecx, [esp + 0x4c]
call fcn.11d60b40
mov esi, dword [esp + 0xf4]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x2c]
push eax
push ecx
push edi
call fcn.11d60660
mov eax, dword [esp + 0x50]
add esp, 0x10
test eax, eax
je 0x11d4fed0
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x110]
mov dword [esi + 0x24], edx
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x10c]
push edx
push ecx
push esi
mov dword [esi + 0x20], eax
call eax
mov dword [esi + 0x1c], edi
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0xc], ecx
mov ebp, dword [esp + 0xf8]
lea ecx, [esp + 0x4c]
call fcn.11d60b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x11dfc748]
test ecx, ecx
je 0x11d4fe09
push eax
push str.redirect_ConnectEx_09_dwLastError___d
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0x10
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d4fe9c
mov eax, dword [esp + 0x108]
push eax
push str.redirect_ConnectEx_10_dwSendDataLength___d
push str.TMailHook_DBG
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x10
test eax, eax
je 0x11d4fe9c
mov eax, dword [esi + 0x14]
push eax
push str.redirect_ConnectEx_11_pContext__GetReturn_____d
push str.TMailHook_DBG
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x10
test eax, eax
je 0x11d4fe9c
mov ecx, dword [esp + 0x2c]
push 0x28
push ecx
push str.redirect_ConnectEx_12_dwBytesSentNew___d_sizeof_HOOKINFO____d
push str.TMailHook_DBG
push 4
call fcn.11d354f0
mov eax, dword [0x11dfc748]
add esp, 0x14
test eax, eax
je 0x11d4fe9c
mov edx, dword [esp + 0x110]
push edx
push str.redirect_ConnectEx_12_lpOverlapped___d
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0x10
mov ecx, 0x11df68f0
call fcn.11d39a10
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x11d4ff45
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x11d4ff45
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x28
jb 0x11d4ff33
add ecx, 0xffffffd8
mov dword [eax], ecx
jmp 0x11d4ff45
mov edi, dword [esi + 0x18]
test edi, edi
je 0x11d4fdd4
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x100]
push edx
mov edx, dword [esp + 0x28]
push eax
push ebx
push ebp
mov ebp, dword [esp + 0x108]
push ecx
push edx
push ebp
call edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
test eax, 0x800000
je 0x11d4fddb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
jmp 0x11d4fddb
mov dword [eax], 0
mov dword [esi + 0x14], 0
jmp 0x11d502ad
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d4ff62
push str.redirect_ConnectEx_13
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov word [esp + 0x9c], ax
mov dword [esp + 0x9e], edx
mov dword [esp + 0x70], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0xa2], edx
lea ecx, [esp + 0x9c]
push eax
mov dword [esp + 0xaa], edx
mov edi, 0x10
push ecx
push ebp
mov word [esp + 0xb6], dx
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x11d4ffe4
mov edx, dword [esp + 0xa0]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x9e]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x72], ax
jmp 0x11d50008
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d50025
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.TMAILHOOK32::getpeername_failed__errno:__d_connectEx_
push 0x11de02f8
push 4
call fcn.11d354f0
add esp, 0x10
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d50025
push str.redirect_ConnectEx_14
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x86], ecx
lea eax, [esp + 0x84]
mov dword [esp + 0x8a], ecx
push edx
mov dword [esp + 0x92], ecx
push eax
push ebp
mov word [esp + 0x90], 0
mov word [esp + 0x9e], cx
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_getpeername]
mov edi, eax
cmp edi, 0xffffffff
je 0x11d50092
mov ecx, dword [esp + 0x88]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [esp + 0x86]
mov dword [esp + 0x68], eax
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x70], ax
cmp ebx, 0xffffffff
je 0x11d500ac
cmp edi, 0xffffffff
je 0x11d500ac
lea eax, [esp + 0x68]
mov ecx, 0x11df69a0
push eax
push ebp
call fcn.11d38a10
mov eax, dword [0x11dfc748]
test eax, eax
je 0x11d5016f
push str.redirect_ConnectEx_15
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
jmp 0x11d5016f
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x11d50139
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
push ecx
mov ecx, dword [esp + 0x108]
push edx
mov edx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x108]
push edx
push eax
push ecx
call edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
test eax, 0x800000
je 0x11d50139
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
lea ecx, [esp + 0x4c]
call fcn.11d60b20
cmp dword [0x11dfc748], ebx
je 0x11d5015e
push str.after_connectEx
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0xc
mov ecx, 0x11df68f0
call fcn.11d39a10
mov ebp, dword [esp + 0xf8]
mov eax, dword [0x11df6e60]
test eax, eax
jne 0x11d5023a
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x11d5020e
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x11d5020e
mov eax, dword [0x11df6e54]
test eax, eax
je 0x11d501e1
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x11d501d8
mov eax, dword [0x11df712c]
test eax, eax
je 0x11d501d8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, 0x11df6a18
call fcn.11d3c3b0
test eax, eax
jne 0x11d501d8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x11d5020e
mov eax, dword [0x11df6e54]
test eax, eax
jne 0x11d50231
mov eax, dword [esp + 0x20]
test eax, eax
mov eax, dword [0x11df6e44]
jne 0x11d50202
test eax, eax
je 0x11d50202
mov ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x11d50202
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x11d5020e
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x11d50231
test eax, eax
je 0x11d50231
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
push edx
push eax
mov eax, dword [esp + 0x108]
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebp
call fcn.11d588d0
add esp, 0x18
mov eax, dword [0x11df6e60]
test eax, eax
je 0x11d5026e
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
push 0
push edx
push 1
push eax
mov dword [esp + 0x54], 0
call dword [sym.imp.WS2_32.dll_ntohs]
push eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
push ebp
mov ecx, 0x11df6c78
call fcn.11d47f20
mov edx, dword [esp + 0x24]
push edx
call fcn.11d7882e
mov eax, dword [0x11dfc748]
add esp, 4
test eax, eax
je 0x11d502ad
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x104]
xor eax, eax
mov ax, word [ecx]
push eax
push str.TMAILHOOK::connectFunc_2...addr_family__d___bRet__d___errno__d__connectEx_
push str.TMailHook_DBG
push 4
call fcn.11d354f0
add esp, 0x18
push ebp
mov ecx, 0x11df68f0
call fcn.11d396f0
mov esi, dword [esi + 0x14]
lea ecx, [esp + 0x4c]
mov dword [esp + 0xec], 0xffffffff
call fcn.11d60ab0
mov eax, esi
jmp 0x11d5040a
mov esi, dword [esp + 0xf4]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x20], ebp
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov ebx, dword [esi + 0x1c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
lea edx, [esp + 0x40]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x38], ebp
call fcn.11d60660
mov eax, dword [esp + 0x4c]
add esp, 0x10
cmp eax, ebp
je 0x11d5037a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x110]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x10c]
mov ebp, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x10c]
push edx
mov edx, dword [esp + 0x108]
push ecx
push edi
push edx
push esi
mov dword [esi + 0x20], eax
call eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x1c], ebx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
xor ebp, ebp
jmp 0x11d503dd
mov ebx, dword [esi + 0x18]
cmp ebx, ebp
je 0x11d503dd
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x108]
push ecx
mov ecx, dword [esp + 0x108]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edi
push edx
call ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
test eax, 0x800000
je 0x11d503dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
cmp dword [0x11dfc748], ebp
je 0x11d50407
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor edx, edx
push eax
mov dx, word [edi]
push ecx
push edx
push str.TMAILHOOK::connectFunc_..._addr_family__d___bRet__d___errno__d__connectEx_
push str.connectExFunc
push 4
call fcn.11d354f0
add esp, 0x18
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 0x20