Function at 0x403430
Capabilities:
Enumerate pe sections
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 6]
mov cx, word [eax + 4]
mov word [ebp - 0x11a], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x118], edx
movzx edx, word [eax + 0xe]
mov dword [ebp - 0x114], ecx
mov cl, byte [eax + 0x10]
push ebx
mov word [ebp - 0x110], dx
mov edx, dword [eax + 0x18]
mov byte [ebp - 0x10e], cl
mov ecx, dword [eax + 0x14]
push esi
mov dword [ebp - 0x108], edx
movzx edx, word [eax + 0x1c]
mov al, byte [eax + 0x1e]
push ecx
mov dword [ebp - 0x10c], ecx
push str.SELECT__FROM_CashShopInventory_WHERE_BaseItemCode_d
mov ecx, 0x424ee0
mov bl, 1
mov dword [ebp - 0x120], 0x181801c2
mov byte [ebp - 0x11c], 4
mov byte [ebp - 0x10d], 0
mov word [ebp - 0x104], dx
mov byte [ebp - 0x102], al
call fcn.00417790
add esp, 8
test al, al
je 0x4036cb
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4036cb
push str.BaseItemCode
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x403505
or eax, 0xffffffff
jmp 0x403513
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MainItemCode
mov dword [ebp - 0x100], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40352c
or eax, eax
jmp 0x40353a
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.PackageMainIndex
mov dword [ebp - 0xfc], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x403553
or eax, eax
jmp 0x403561
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.ProductBaseIndex
mov dword [ebp - 0xf8], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40357a
or eax, eax
jmp 0x403588
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.ProductMainIndex
mov dword [ebp - 0xf4], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4035a1
or eax, eax
jmp 0x4035af
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.CoinValue
mov dword [ebp - 0xf0], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4035d2
fld dword [0x421d58]
fstp dword [ebp - 0x124]
jmp 0x4035ea
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x124]
add esp, 4
fld dword [ebp - 0x124]
push str.ProductType
fstp qword [ebp - 0xe8]
call fcn.00417950
cmp eax, 0xffffffff
jne 0x403609
or eax, eax
jmp 0x403617
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.GiftName
mov byte [ebp - 0xe0], al
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_strncpy_s]
cmp eax, 0xffffffff
jne 0x40364f
xor eax, eax
mov dword [ebp - 0xdf], eax
mov dword [ebp - 0xdb], eax
mov word [ebp - 0xd7], ax
mov byte [ebp - 0xd5], al
jmp 0x403668
shl eax, 0xd
push 0xa
add eax, 0x425b0e
push eax
lea edx, [ebp - 0xdf]
push 0xb
push edx
call esi
add esp, 0x10
push str.GiftText
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40368f
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x4036ae
shl eax, 0xd
push 0xc7
add eax, 0x425b0e
push eax
lea ecx, [ebp - 0xd4]
push 0xc8
push ecx
call esi
add esp, 0x10
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]
jmp 0x4036ed
mov ecx, dword [0x424eec]
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 byte [ebp - 0x10d], bl
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
push eax
push ecx
mov ebx, 0x118
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 8