Function at 0x5906d990
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x591571b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
je 0x5906ddd8
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, ebp
or eax, ecx
je 0x5906ddd8
mov ecx, dword [edi + 4]
push ebx
push ecx
call fcn.5906cfb0
mov edx, dword [edi + 4]
mov esi, eax
push edx
call fcn.5906cd40
add esp, 8
mov ebx, eax
test esi, esi
je 0x5906ddb1
test ebx, ebx
je 0x5906ddb1
add edi, 0x20
lea ecx, [esp + 0x14]
push edi
call fcn.590a6ec0
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 4]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0
call fcn.590a95a0
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5906da4a
mov edx, dword [esp + 0x14]
push edx
push str.MailMasterGetCompleteBody___s_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.590c57d0
add esp, 8
test eax, eax
je 0x5906dd4a
mov ecx, 0x591ae0e8
call fcn.59002150
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x591ae0e8
call fcn.59002330
test eax, eax
jne 0x5906dda0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5906dda0
mov eax, dword [0x591638c0]
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x54]
push str.SELECT__s__s__s_FROM__s_WHERE__s___1_AND__s__1
push ecx
mov byte [esp + 0x54], 1
call fcn.590aa5e0
mov eax, dword [0x591ae1c8]
mov edi, dword [esp + 0x64]
add esp, 0x20
test eax, eax
je 0x5906daf8
mov edx, dword [esp + 0x3c]
push edi
push ebp
push edx
push str.MailMasterGetCompleteBody_wstrSql__s_nId__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x1c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x591ae0e8
mov dword [esp + 0x34], 1
call fcn.59002350
test eax, eax
je 0x5906db9d
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push str.SELECT__s__s_FROM__s_WHERE__s___1_AND__s__1
push edx
mov dword [esp + 0x3c], 0
call fcn.590aa5e0
mov eax, dword [0x591ae1c8]
add esp, 0x1c
test eax, eax
je 0x5906db78
mov eax, dword [esp + 0x3c]
push edi
push ebp
push eax
push str.MailMasterGetCompleteBody_wstrSql2__s_nId__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x1c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0xffffffffffffffff
push edx
push eax
mov ecx, 0x591ae0e8
call fcn.59002350
test eax, eax
jne 0x5906dd6e
mov ecx, dword [esp + 0x10]
push edi
push ebp
push 1
push ecx
mov ecx, 0x591ae0e8
call fcn.59002380
mov edx, dword [esp + 0x10]
mov ecx, 0x591ae0e8
push edx
call fcn.590023e0
cmp eax, 0x64
jne 0x5906dd92
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, 0x591ae0e8
call fcn.59002400
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, 0x591ae0e8
mov ebx, eax
mov ebp, edx
call fcn.59002450
mov edx, dword [esp + 0x10]
push 1
push edx
mov ecx, 0x591ae0e8
mov edi, eax
call fcn.59002470
push 0x591af1e0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.590a6ec0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x34], 2
test eax, eax
je 0x5906dc39
mov eax, dword [esp + 0x10]
push 2
push eax
mov ecx, 0x591ae0e8
call fcn.59002430
push eax
lea ecx, [esp + 0x20]
call fcn.590a78e0
mov ecx, dword [0x591638bc]
mov dword [esp + 0x40], ecx
test ebp, ebp
mov byte [esp + 0x34], 3
jl 0x5906dc7b
jg 0x5906dc52
test ebx, ebx
jbe 0x5906dc7b
push esi
lea edx, [esp + 0x28]
push edi
push edx
call fcn.5906d8a0
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.590a2460
mov byte [esp + 0x34], 3
lea ecx, [esp + 0x24]
jmp 0x5906dc9e
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.590a1d90
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 5
call fcn.590a2460
mov byte [esp + 0x34], 3
lea ecx, [esp + 0x28]
call fcn.590a22e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5906dcd0
push str.utf_8
push eax
call fcn.5908ac78
add esp, 8
test eax, eax
je 0x5906dcd0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
push eax
call fcn.590a79c0
jmp 0x5906dce3
mov ecx, dword [esp + 0x40]
push 0xfde9
push ecx
mov ecx, dword [esp + 0x54]
call fcn.590abac0
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5906dd14
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx]
push eax
push esi
push ecx
push ebp
push ebx
push str.MailMasterGetCompleteBody_nType__I64u_wstrCharset__s_nLen__d_wstrHtml__s_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x24
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.590a22e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.590a7660
mov edx, dword [esp + 0x10]
mov ecx, 0x591ae0e8
push edx
call fcn.590023e0
cmp eax, 0x64
je 0x5906dbc8
jmp 0x5906dd92
mov eax, dword [0x591ae1c8]
test eax, eax
je 0x5906dda0
push str.MailMasterGetCompleteBody__IsFileExistW
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x10
jmp 0x5906dda0
mov ecx, dword [0x591ae1c8]
test ecx, ecx
je 0x5906dd92
push eax
push str.MailMasterGetCompleteBody_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x591ae15c
call fcn.590851e0
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.590a7660
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.590a7660
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x5906ddc5
push eax
mov ecx, 0x591ae0e8
call fcn.59002590
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5906ddd8
push eax
mov ecx, 0x591ae0e8
call fcn.59002570
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5906de33
call fcn.590bc680
test eax, eax
je 0x5906de33
push 0
call dword [0x591aa550]
test eax, eax
jl 0x5906de33
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.5900b3f0
add esp, 8
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x34], 6
call fcn.590a77f0
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], 0xffffffff
call fcn.590a7660
call dword [0x591aa55c]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret