Function at 0x4ac5f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x2ac
push ebx
mov ebx, dword [esp + 0x2b4]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
je 0x4ac843
mov eax, dword [ebx + 0x284]
mov byte [ebx + 0x7f], 0
test eax, eax
mov byte [ebx + 0xff], 0
mov byte [ebx + 0x17f], 0
mov byte [ebx + 0x1ff], 0
mov byte [ebx + 0x27f], 0
je 0x4ac63e
cmp dword [ebx + 0x288], 1
jge 0x4ac648
mov dword [ebx + 0x288], 0
lea eax, [esp + 0x14]
mov ecx, 0x593d48
push eax
call fcn.0042f730
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ac843
mov al, byte [esp + 0xbc]
test al, al
je 0x4ac82f
mov al, byte [esp + 0x13c]
test al, al
je 0x4ac82f
mov al, byte [esp + 0x1bc]
test al, al
je 0x4ac82f
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xa4d8]
cmp eax, 0x40
jl 0x4ac6d3
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebx, 0x200
push ebx
push str.Mail:_not_enough_space_for__s
push 1
push 0x596558
call fcn.004aa400
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret 4
lea ecx, [eax + eax*8]
mov esi, ebx
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov ecx, 0xa3
lea edi, [ebp + edx*4 + 0x1d8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x284]
test eax, eax
je 0x4ac7a7
mov eax, dword [ebx + 0x288]
add eax, 0xa
push eax
call fcn.004c2e90
mov ecx, dword [ebp + 0xa4d8]
add esp, 4
test eax, eax
lea edx, [ecx + ecx*8]
lea edx, [edx + edx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*4 + 0x45c], eax
jne 0x4ac757
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ebx, 0x200
push ebx
push str.Mail:_not_enough_memory_for__s
push 1
push 0x596558
call fcn.004aa400
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ac
ret 4
mov eax, dword [ebp + 0xa4d8]
mov ecx, dword [ebx + 0x288]
mov esi, dword [ebx + 0x284]
lea edx, [eax + eax*8]
lea edx, [edx + edx*8]
lea eax, [eax + edx*2]
mov edx, ecx
shr ecx, 2
mov edi, dword [ebp + eax*4 + 0x45c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xa4d8]
lea ecx, [eax + eax*8]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov ecx, dword [ebx + 0x288]
mov eax, dword [ebp + edx*4 + 0x45c]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 0xa4d8]
mov eax, dword [ebp + 0xa4dc]
xor esi, esi
inc edx
cmp eax, esi
mov dword [ebp + 0xa4d8], edx
je 0x4ac7e9
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], 0x103
je 0x4ac7e9
mov eax, dword [ebp + 0xa4dc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0xa4dc], esi
cmp dword [ebp + 0xa4dc], esi
jne 0x4ac816
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], esi
push ecx
push esi
push ebp
push 0x4ac860
push 0x1388
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebp + 0xa4dc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2ac
ret 4
push str.Mail:_invalid_SMTP_settings__Tools__Options__Email_
push 1
push 0x596558
call fcn.004aa400
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ac
ret 4