Function at 0x4092e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
movzx eax, word [edi + 4]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov ebx, dword [sym.imp.ODBC32.dll_SQLBindParameter]
push 0x4edca0
lea esi, [edi + 0xc]
mov word [ebp - 0x46c], ax
movzx eax, word [esi + 8]
push 0
mov word [ebp - 0x462], ax
lea eax, [edi + 0x17]
push eax
push 0
push 0xb
push 0xc
push 1
push 1
mov dword [ebp - 0x47c], eax
mov eax, dword [0x424eec]
mov dword [ebp - 0x46a], ecx
mov cl, byte [esi + 0xa]
mov dword [ebp - 0x466], edx
mov edx, dword [edi + 8]
push 1
push eax
mov word [ebp - 0x470], 0x18c1
mov byte [ebp - 0x46e], 0x70
mov byte [ebp - 0x460], cl
mov byte [ebp - 0x45f], 1
mov dword [ebp - 0x45c], edx
mov dword [0x4edca0], 0xfffffffd
call ebx
mov edx, dword [0x424eec]
push 0x4edca4
push 0
lea ecx, [edi + 0x22]
push ecx
push 0
push 0x20
push 0xc
push 1
push 1
push 2
push edx
mov dword [0x4edca4], 0xfffffffd
call ebx
movzx eax, byte [edi + 0x43]
movzx ecx, byte [edi + 0x42]
push eax
push ecx
push esi
push str.WZ_WriteMail__s______d__d
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0x10
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
push 0x425b0e
call esi
push 0x427b0e
mov dword [ebp - 0x458], eax
call esi
mov esi, eax
mov eax, dword [0x424eec]
add esp, 8
push eax
mov dword [ebp - 0x478], esi
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp - 0x458]
cmp eax, 0xa
ja 0x40944e
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x470]
push edx
mov ecx, 0x18
mov byte [ebp - 0x45f], al
call fcn.004086c0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
push 0x3e8
lea eax, [ebp - 0x3f4]
push 0
push eax
call sub.MSVCR100.dll_memset
movsx ecx, word [edi + 0x44]
push ecx
lea edx, [edi + 0x58]
push edx
lea eax, [ebp - 0x3f4]
push eax
call sub.MSVCR100.dll_memcpy
mov edx, dword [0x424eec]
add esp, 0x18
push 0x4edca0
push 0
lea ecx, [ebp - 0x3f4]
push ecx
push 0
push 0x3e8
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x4edca0], 0x3e8
call ebx
mov eax, dword [0x424eec]
push 0x4edca4
push 0
add edi, 0x46
push edi
push 0
push 0x12
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 2
push eax
mov dword [0x4edca4], 0x12
call ebx
mov edi, dword [ebp - 0x458]
push esi
push edi
push str.UPDATE_T_FriendMail_SET_Memo__Photo__WHERE_MemoIndex_d_AND_GUID_d
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0xc
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x470]
push eax
mov ecx, 0x18
call fcn.004086c0
add esp, 4
cmp byte [ebp - 0x45f], 1
jne 0x409747
mov ebx, dword [ebp - 0x47c]
lea ecx, [ebp - 0x474]
push ecx
mov ecx, ebx
call fcn.00406be0
test al, al
je 0x409747
mov edx, dword [ebp - 0x478]
push edx
push edi
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
mov cx, word [ebp - 0x45e]
push str.MemoIndex
mov dword [ebp - 0x454], 0x715e00c2
mov word [ebp - 0x450], cx
call fcn.00417950
cmp eax, 0xffffffff
jne 0x409599
or eax, eax
jmp 0x4095ab
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
push str.FriendName
mov word [ebp - 0x44e], ax
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_strncpy_s]
cmp eax, 0xffffffff
jne 0x4095e4
xor eax, eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], eax
mov word [ebp - 0x444], ax
mov byte [ebp - 0x442], al
jmp 0x4095fd
shl eax, 0xd
push 0xa
add eax, 0x425b0e
push eax
lea edx, [ebp - 0x44c]
push 0xb
push edx
call esi
add esp, 0x10
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dx, word [ebx + 8]
mov dword [ebp - 0x441], eax
mov al, byte [ebx + 0xa]
push str.wDate
mov dword [ebp - 0x43d], ecx
mov word [ebp - 0x439], dx
mov byte [ebp - 0x437], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x409666
xor eax, eax
mov dword [ebp - 0x436], eax
mov dword [ebp - 0x432], eax
mov dword [ebp - 0x42e], eax
mov dword [ebp - 0x42a], eax
mov dword [ebp - 0x426], eax
mov dword [ebp - 0x422], eax
mov dword [ebp - 0x41e], eax
mov word [ebp - 0x41a], ax
jmp 0x40967f
shl eax, 0xd
push 0x1d
add eax, 0x425b0e
push eax
lea ecx, [ebp - 0x436]
push 0x1e
push ecx
call esi
add esp, 0x10
push str.Subject
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4096c2
xor eax, eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x400], eax
mov dword [ebp - 0x3fc], eax
jmp 0x4096db
shl eax, 0xd
push 0x1f
add eax, 0x425b0e
push eax
lea edx, [ebp - 0x418]
push 0x20
push edx
call esi
add esp, 0x10
push str.bRead
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4096ee
or eax, eax
jmp 0x409700
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov edx, dword [ebp - 0x45c]
mov byte [ebp - 0x3f8], al
call fcn.0041a480
test eax, eax
je 0x40972c
mov esi, dword [eax + 4]
lea ecx, [ebp - 0x454]
push ecx
mov ecx, 0x5e
call fcn.004086c0
add esp, 4
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret