Function at 0x5906dda0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59156428
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 0x5906e1e8
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, ebp
or eax, ecx
je 0x5906e1e8
mov ecx, dword [edi + 4]
push ebx
push ecx
call fcn.5906d3c0
mov edx, dword [edi + 4]
mov esi, eax
push edx
call fcn.5906d190
add esp, 8
mov ebx, eax
test esi, esi
je 0x5906e1c1
test ebx, ebx
je 0x5906e1c1
add edi, 0x20
lea ecx, [esp + 0x14]
push edi
call fcn.590a5aa0
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.590a8180
mov eax, dword [0x591ac718]
test eax, eax
je 0x5906de5a
mov edx, dword [esp + 0x14]
push edx
push str.MailMasterGetCompleteBody___s_
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x14
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.590c43b0
add esp, 8
test eax, eax
je 0x5906e15a
mov ecx, 0x591ac638
call fcn.59002060
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x591ac638
call fcn.59002240
test eax, eax
jne 0x5906e1b0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5906e1b0
mov eax, dword [0x59162880]
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.590a91c0
mov eax, dword [0x591ac718]
mov edi, dword [esp + 0x64]
add esp, 0x20
test eax, eax
je 0x5906df08
mov edx, dword [esp + 0x3c]
push edi
push ebp
push edx
push str.MailMasterGetCompleteBody_wstrSql__s_nId__d_
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
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, 0x591ac638
mov dword [esp + 0x34], 1
call fcn.59002260
test eax, eax
je 0x5906dfad
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.590a91c0
mov eax, dword [0x591ac718]
add esp, 0x1c
test eax, eax
je 0x5906df88
mov eax, dword [esp + 0x3c]
push edi
push ebp
push eax
push str.MailMasterGetCompleteBody_wstrSql2__s_nId__d_
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
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, 0x591ac638
call fcn.59002260
test eax, eax
jne 0x5906e17e
mov ecx, dword [esp + 0x10]
push edi
push ebp
push 1
push ecx
mov ecx, 0x591ac638
call fcn.59002290
mov edx, dword [esp + 0x10]
mov ecx, 0x591ac638
push edx
call fcn.590022f0
cmp eax, 0x64
jne 0x5906e1a2
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, 0x591ac638
call fcn.59002310
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, 0x591ac638
mov ebx, eax
mov ebp, edx
call fcn.59002360
mov edx, dword [esp + 0x10]
push 1
push edx
mov ecx, 0x591ac638
mov edi, eax
call fcn.59002380
push 0x591ad730
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.590a5aa0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x34], 2
test eax, eax
je 0x5906e049
mov eax, dword [esp + 0x10]
push 2
push eax
mov ecx, 0x591ac638
call fcn.59002340
push eax
lea ecx, [esp + 0x20]
call fcn.590a64c0
mov ecx, dword [0x5916287c]
mov dword [esp + 0x40], ecx
test ebp, ebp
mov byte [esp + 0x34], 3
jl 0x5906e08b
jg 0x5906e062
test ebx, ebx
jbe 0x5906e08b
push esi
lea edx, [esp + 0x28]
push edi
push edx
call fcn.5906dcb0
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.590a1040
mov byte [esp + 0x34], 3
lea ecx, [esp + 0x24]
jmp 0x5906e0ae
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.590a0970
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 5
call fcn.590a1040
mov byte [esp + 0x34], 3
lea ecx, [esp + 0x28]
call fcn.590a0ec0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5906e0e0
push str.utf_8
push eax
call fcn.59089858
add esp, 8
test eax, eax
je 0x5906e0e0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
push eax
call fcn.590a65a0
jmp 0x5906e0f3
mov ecx, dword [esp + 0x40]
push 0xfde9
push ecx
mov ecx, dword [esp + 0x54]
call fcn.590aa6a0
mov eax, dword [0x591ac718]
test eax, eax
je 0x5906e124
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 0x591ac6ac
call fcn.59083dc0
add esp, 0x24
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.590a0ec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.590a6240
mov edx, dword [esp + 0x10]
mov ecx, 0x591ac638
push edx
call fcn.590022f0
cmp eax, 0x64
je 0x5906dfd8
jmp 0x5906e1a2
mov eax, dword [0x591ac718]
test eax, eax
je 0x5906e1b0
push str.MailMasterGetCompleteBody__IsFileExistW
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x10
jmp 0x5906e1b0
mov ecx, dword [0x591ac718]
test ecx, ecx
je 0x5906e1a2
push eax
push str.MailMasterGetCompleteBody_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x591ac6ac
call fcn.59083dc0
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.590a6240
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.590a6240
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x5906e1d5
push eax
mov ecx, 0x591ac638
call fcn.590024a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5906e1e8
push eax
mov ecx, 0x591ac638
call fcn.59002480
mov esi, dword [esp + 0x48]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5906e243
call fcn.590bb260
test eax, eax
je 0x5906e243
push 0
call dword [0x591a8aa0]
test eax, eax
jl 0x5906e243
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.5900b2f0
add esp, 8
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x34], 6
call fcn.590a63d0
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], 0xffffffff
call fcn.590a6240
call dword [0x591a8aac]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret