Function at 0x134171e0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x134c7cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
je 0x13417617
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, ebx
or eax, ecx
je 0x13417617
mov ecx, dword [edi + 4]
push ebp
push ecx
call fcn.13416820
mov edx, dword [edi + 4]
mov esi, eax
push edx
call fcn.134165f0
add esp, 8
mov ebp, eax
test esi, esi
je 0x134175f0
test ebp, ebp
je 0x134175f0
add edi, 0x20
lea ecx, [esp + 0x14]
push edi
call fcn.13443cf0
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 4]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call fcn.134463d0
mov eax, dword [0x13511b00]
test eax, eax
je 0x1341729a
mov edx, dword [esp + 0x14]
push edx
push str.MailMasterGetCompleteBody___s_
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x14
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.13461be0
add esp, 8
test eax, eax
je 0x13417589
mov ecx, 0x13511a28
call fcn.133b2060
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, 0x13511a28
call fcn.133b2240
test eax, eax
jne 0x134175df
mov eax, dword [esp + 0x18]
test eax, eax
je 0x134175df
mov eax, dword [0x134d0d90]
mov dword [esp + 0x30], 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 + 0x48]
push str.SELECT__s__s__s_FROM__s_WHERE__s___1_AND__s__1
push ecx
mov byte [esp + 0x48], 1
call fcn.13447410
mov eax, dword [0x13511b00]
mov edi, dword [esp + 0x58]
add esp, 0x20
test eax, eax
je 0x13417348
mov edx, dword [esp + 0x30]
push edi
push ebx
push edx
push str.MailMasterGetCompleteBody_wstrSql__s_nId__d_
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x1c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
push 0xffffffffffffffff
push ecx
push edx
mov ecx, 0x13511a28
mov ebp, 1
call fcn.133b2260
test eax, eax
je 0x134173e4
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 + 0x44]
push str.SELECT__s__s_FROM__s_WHERE__s___1_AND__s__1
push edx
xor ebp, ebp
call fcn.13447410
mov eax, dword [0x13511b00]
add esp, 0x1c
test eax, eax
je 0x134173bf
mov eax, dword [esp + 0x30]
push edi
push ebx
push eax
push str.MailMasterGetCompleteBody_wstrSql2__s_nId__d_
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x1c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0xffffffffffffffff
push edx
push eax
mov ecx, 0x13511a28
call fcn.133b2260
test eax, eax
jne 0x134175ad
mov ecx, dword [esp + 0x10]
push edi
push ebx
push 1
push ecx
mov ecx, 0x13511a28
call fcn.133b2290
mov edx, dword [esp + 0x10]
mov ecx, 0x13511a28
push edx
call fcn.133b22f0
cmp eax, 0x64
jne 0x134175d1
mov ebx, 2
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, 0x13511a28
call fcn.133b2310
test edx, edx
jl 0x1341752d
jg 0x13417437
test eax, eax
jbe 0x1341752d
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, 0x13511a28
call fcn.133b2360
mov edx, dword [esp + 0x10]
push 1
push edx
mov ecx, 0x13511a28
mov edi, eax
call fcn.133b2380
push 0x13512ab0
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.13443cf0
test ebp, ebp
mov byte [esp + 0x28], bl
je 0x1341748d
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, 0x13511a28
call fcn.133b2340
push eax
lea ecx, [esp + 0x38]
call fcn.13444710
push esi
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.134170f0
add esp, 0xc
mov eax, dword [esp + 0x34]
mov byte [esp + 0x28], 3
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x134174ce
push str.utf_8
push eax
call fcn.1342c090
add esp, 8
test eax, eax
je 0x134174ce
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push edx
call fcn.134447f0
jmp 0x134174e1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push 0xfde9
push eax
call fcn.134488f0
mov eax, dword [0x13511b00]
test eax, eax
je 0x13417510
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov edx, dword [ecx]
push edx
push esi
push eax
push str.MailMasterGetCompleteBody_wstrCharset__s_nLen__d_wstrHtml__s_
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], bl
call fcn.1343f110
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.13444490
jmp 0x1341756f
mov ecx, dword [esp + 0x10]
push 1
push ecx
mov ecx, 0x13511a28
call fcn.133b2340
mov esi, dword [esp + 0x3c]
push eax
mov ecx, esi
call fcn.13444710
mov eax, dword [0x13511b00]
test eax, eax
je 0x1341756f
mov edx, dword [esi]
push edx
push str.MailMasterGetCompleteBody_wstrText__s_
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x14
mov eax, dword [esp + 0x10]
mov ecx, 0x13511a28
push eax
call fcn.133b22f0
cmp eax, 0x64
je 0x13417414
jmp 0x134175d1
mov eax, dword [0x13511b00]
test eax, eax
je 0x134175df
push str.MailMasterGetCompleteBody__IsFileExistW
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x10
jmp 0x134175df
mov ecx, dword [0x13511b00]
test ecx, ecx
je 0x134175d1
push eax
push str.MailMasterGetCompleteBody_sqlite3_prepare16_v2__Failed__nSqlRet:__d_
push str.History
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x14
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.13444490
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.13444490
mov eax, dword [esp + 0x10]
pop ebp
test eax, eax
je 0x13417604
push eax
mov ecx, 0x13511a28
call fcn.133b24a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x13417617
push eax
mov ecx, 0x13511a28
call fcn.133b2480
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x13417672
call fcn.13457cf0
test eax, eax
je 0x13417672
push 0
call dword [0x1350de9c]
test eax, eax
jl 0x13417672
mov eax, dword [esi]
lea edx, [esp + 0x3c]
push eax
push edx
call fcn.133ba0a0
add esp, 8
mov ecx, dword [esp + 0x38]
push eax
mov dword [esp + 0x28], 4
call fcn.13444620
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], 0xffffffff
call fcn.13444490
call dword [0x1350de94]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret