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

Disassembly:
push 0xffffffffffffffff
push 0x1018b7a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.1000ea90
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], edi
call fcn.10087510
test eax, eax
jne 0x1001fbc6
cmp dword [0x10201328], edi
je 0x1001fb9a
push str.HandleMailSCIFile_Create_Thread_handle_failed___
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x10], 0x10198a80
call fcn.10087460
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov ebx, eax
mov eax, dword [esi + 0x170]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1001fc7c
lea ecx, [esp + 0x18]
call fcn.10087710
test eax, eax
je 0x1001fc59
call ebp
sub eax, ebx
cmp eax, 0x1d4c0
jbe 0x1001fc41
test edi, edi
jne 0x1001fc41
mov eax, dword [0x10201328]
mov edi, 1
test eax, eax
je 0x1001fc33
mov ecx, dword [esi + 0x18]
push ecx
push str.HandleMailSCIFile_time_out_2min__m_bSendOffline__d_
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1001fc41
mov ecx, esi
call fcn.10020840
mov edx, dword [esi + 0x170]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1001fbec
jmp 0x1001fc7c
mov ecx, dword [0x10201328]
test ecx, ecx
je 0x1001fc82
push str.HandleMailSCIFile_Thread_no_running
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x10
mov ecx, dword [0x10201328]
mov eax, dword [esp + 0x40]
pop ebp
cmp eax, 3
mov edi, eax
pop ebx
ja 0x1001fd8d
je 0x1001fd52
test eax, eax
je 0x1001fcff
jbe 0x1001fca8
cmp eax, 2
jbe 0x1001fda8
test ecx, ecx
je 0x1001fcc6
push eax
push str.HandleMailSCIFile_default__dwError__lu_
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
lea ecx, [esi + 0x180]
call fcn.10045200
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x10], 0x10198a80
call fcn.10087460
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
test ecx, ecx
je 0x1001fd20
mov eax, dword [esi + 0x18]
push eax
push str.HandleMailSCIFile_send_success__m_bSendOffline__d_
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x14
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1001fd40
mov ecx, esi
call fcn.100204f0
test eax, eax
je 0x1001fd40
push 0x3e8
push 2
mov ecx, esi
call fcn.10021890
lea ecx, [esi + 0x180]
call fcn.10045200
mov esi, 1
jmp 0x1001fcd3
test ecx, ecx
je 0x1001fd75
mov ecx, dword [esi + 0x18]
push ecx
push 3
push str.HandleMailSCIFile_delay_send_No.2__dwError__lu___m_bSendOffline__d_
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x18
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1001fd83
mov ecx, esi
call fcn.100214b0
mov esi, 1
jmp 0x1001fcd3
cmp eax, 4
jb 0x1001fca8
cmp eax, 5
jbe 0x1001fe63
cmp eax, 0xffffffff
jne 0x1001fca8
test ecx, ecx
je 0x1001fdca
mov edx, dword [esi + 0x18]
push edx
push eax
push str.HandleMailSCIFile_do_not_send__dwError__lu__m_bSendOffline__d_
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x18
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1001fe3d
mov eax, dword [0x1019b4e0]
mov dword [esp + 8], eax
cmp edi, 2
mov byte [esp + 0x48], 1
je 0x1001fdfe
cmp edi, 0xffffffff
je 0x1001fdfe
cmp edi, 1
jne 0x1001fe11
push str.554_Can_not_send_email_with_sensitive_content_r_n
lea ecx, [esp + 0xc]
call fcn.10072400
jmp 0x1001fe11
push edi
lea ecx, [esp + 0xc]
push str.554_internal_error__code_0x_x__r_n
push ecx
call fcn.10074fa0
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 + 0x14]
mov dword [esp + 0x14], eax
call fcn.10026500
lea ecx, [esp + 8]
mov byte [esp + 0x48], 0
call fcn.100721a0
jmp 0x1001fcc6
cmp edi, 1
push 0x3e8
jne 0x1001fe55
push 0xc
mov ecx, esi
call fcn.100217b0
jmp 0x1001fcc6
push 4
mov ecx, esi
call fcn.100217b0
jmp 0x1001fcc6
test ecx, ecx
je 0x1001fe85
mov ecx, dword [esi + 0x18]
push ecx
push eax
push str.HandleMailSCIFile_send_fail__dwError__lu__m_bSendOffline__d_
push 0x101c895c
push 4
push 0x10200a94
call fcn.1008b760
add esp, 0x18
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1001fed9
mov edx, dword [0x1019b4e0]
mov dword [esp + 8], edx
lea eax, [esp + 8]
push str.554_Transaction_failed_r_n
push eax
mov byte [esp + 0x50], 2
call fcn.10074fa0
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 + 0x14]
push eax
call fcn.10026500
lea ecx, [esp + 8]
mov byte [esp + 0x48], 0
call fcn.100721a0
jmp 0x1001fcc6
cmp edi, 5
jne 0x1001fcc6
push 0x3e8
push 1
mov ecx, esi
call fcn.100217b0
jmp 0x1001fcc6