Function at 0x100223f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x1024d140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.10010860
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], edi
call fcn.10094d00
test eax, eax
jne 0x10022476
cmp dword [0x102f7658], edi
je 0x1002244a
push str.HandleMailSCIFile_Create_Thread_handle_failed___
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x1c], 0x1025bb48
call fcn.10094c50
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [0x102f7658]
cmp eax, edi
je 0x100224b2
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x74]
push eax
push ecx
push edx
push str.HandleMailSCIFile__m_dwClientTimeOut:_d__m_dwServerTimeOut:_d__m_dwTickLastSendToServer:0x_08x_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x1c
mov eax, dword [esi + 0x1e0]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push eax
call ebx
cmp eax, 0x102
jne 0x10022588
lea ecx, [esp + 0x24]
call fcn.10094f00
test eax, eax
je 0x10022566
call ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x74]
sub eax, edx
cmp eax, ecx
jbe 0x1002252b
test edi, edi
jne 0x1002252b
mov eax, dword [0x102f7658]
mov edi, 1
test eax, eax
je 0x1002251d
mov ecx, dword [esi + 0x60]
push ecx
push str.HandleMailSCIFile_time_out__m_bSendOffline__d_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x1002252b
mov ecx, esi
call fcn.100232a0
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x1002254e
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1002254e
call ebp
mov edx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
sub eax, edx
cmp eax, ecx
jbe 0x1002254e
mov ecx, esi
call fcn.10022e60
mov edx, dword [esi + 0x1e0]
push 0x64
push edx
call ebx
cmp eax, 0x102
je 0x100224ce
jmp 0x10022588
mov eax, dword [0x102f7658]
test eax, eax
je 0x10022588
push str.HandleMailSCIFile_Thread_no_running
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esi + 0x1f0]
push eax
call fcn.100509d0
push eax
lea ecx, [esi + 0x150]
mov byte [esp + 0x60], 1
call fcn.100836f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 0
call fcn.10083560
mov eax, dword [esp + 0x4c]
pop ebp
cmp eax, 3
mov edi, eax
pop ebx
ja 0x1002270c
je 0x100226cc
test eax, eax
je 0x1002262f
jbe 0x100225dd
cmp eax, 2
jbe 0x10022727
mov ecx, dword [0x102f7658]
test ecx, ecx
je 0x10022601
push eax
push str.HandleMailSCIFile_default__dwError__lu_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x1c], 0x1025bb48
call fcn.10094c50
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret
mov eax, dword [0x102f7658]
test eax, eax
je 0x10022655
mov ecx, dword [esi + 0x60]
push ecx
push str.HandleMailSCIFile_send_success__m_bSendOffline__d_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
lea ecx, [esi + 4]
call fcn.1000a3b0
test eax, eax
je 0x100226a2
mov eax, dword [0x102adbbc]
mov cl, byte [0x102adbc0]
mov edx, dword [str.250_OK_r_n]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], cl
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], edx
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
mov dword [esp + 8], ecx
mov ecx, dword [esi + 0x5c]
push edx
push eax
call fcn.1002a9e0
mov eax, dword [esi + 0x60]
test eax, eax
je 0x100226c2
mov ecx, esi
call fcn.10022e20
test eax, eax
je 0x100226c2
push 0x3e8
push 2
mov ecx, esi
call fcn.100243c0
mov esi, 1
jmp 0x10022603
mov eax, dword [0x102f7658]
test eax, eax
je 0x100226f4
mov ecx, dword [esi + 0x60]
push ecx
push 3
push str.HandleMailSCIFile_delay_send_No.2__dwError__lu___m_bSendOffline__d_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10022702
mov ecx, esi
call fcn.10023f40
mov esi, 1
jmp 0x10022603
cmp eax, 4
jb 0x100225dd
cmp eax, 5
jbe 0x100227ea
cmp eax, 0xffffffff
jne 0x100225dd
mov ecx, dword [0x102f7658]
test ecx, ecx
je 0x1002274f
mov edx, dword [esi + 0x60]
push edx
push eax
push str.HandleMailSCIFile_do_not_send__dwError__lu__m_bSendOffline__d_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x100227c2
mov eax, dword [0x1025e6e0]
mov dword [esp + 8], eax
cmp edi, 2
mov byte [esp + 0x54], 2
je 0x10022783
cmp edi, 0xffffffff
je 0x10022783
cmp edi, 1
jne 0x10022796
push str.554_Can_not_send_email_with_sensitive_content_r_n
lea ecx, [esp + 0xc]
call fcn.1007e440
jmp 0x10022796
push edi
lea ecx, [esp + 0xc]
push str.554_internal_error__code_0x_x__r_n
push ecx
call fcn.10080fe0
add esp, 0xc
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push ecx
mov eax, dword [ecx - 8]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x14], eax
call fcn.1002a9e0
lea ecx, [esp + 8]
mov byte [esp + 0x54], 0
call fcn.1007e1e0
jmp 0x10022601
cmp edi, 1
jne 0x100227da
push 0x3e8
push 0xc
mov ecx, esi
call fcn.100242e0
jmp 0x10022601
push 3
push 4
mov ecx, esi
call fcn.100242e0
jmp 0x10022601
mov ecx, dword [0x102f7658]
test ecx, ecx
je 0x10022812
mov ecx, dword [esi + 0x60]
push ecx
push eax
push str.HandleMailSCIFile_send_fail__dwError__lu__m_bSendOffline__d_
push 0x102acaa4
push 4
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x18
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x10022866
mov edx, dword [0x1025e6e0]
mov dword [esp + 8], edx
lea eax, [esp + 8]
push str.554_Transaction_failed_r_n
push eax
mov byte [esp + 0x5c], 3
call fcn.10080fe0
mov eax, dword [esp + 0x10]
add esp, 8
mov ecx, dword [eax - 8]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x5c]
push eax
call fcn.1002a9e0
lea ecx, [esp + 8]
mov byte [esp + 0x54], 0
call fcn.1007e1e0
jmp 0x10022601
cmp edi, 5
je 0x10022881
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10022601
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x10022601
push 3
push 1
mov ecx, esi
call fcn.100242e0
jmp 0x10022601