Function at 0x40d030
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x3c], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x36], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x3a], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x30], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x32], dx
mov edx, dword [eax]
mov dword [ebp - 0x2b], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x2f], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x25], cl
push str.SELECT__FROM_OptionData_WHERE_Name_s
mov ecx, 0x424ee0
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 8
mov word [ebp - 0x27], dx
call fcn.00417790
add esp, 8
test al, al
je 0x40d21c
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d21c
push str.SkillKey
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d0e2
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
jmp 0x40d0fa
shl eax, 0xd
push edi
add eax, 0x425b0e
push eax
mov ebx, 0x14
lea edi, [ebp - 0x24]
call fcn.00417ab0
pop edi
push esi
push str.GameOption
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x40d115
or eax, 0xffffffff
jmp 0x40d123
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Qkey
mov byte [ebp - 0x10], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d139
or eax, eax
jmp 0x40d147
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Wkey
mov byte [ebp - 0xf], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d15d
or eax, eax
jmp 0x40d16b
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Ekey
mov byte [ebp - 0xe], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d181
or eax, eax
jmp 0x40d18f
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.ChatWindow
mov byte [ebp - 0xd], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d1a5
or eax, eax
jmp 0x40d1b3
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.Rkey
mov byte [ebp - 0xc], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d1c9
or eax, eax
jmp 0x40d1d7
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.QWERLevel
mov byte [ebp - 0xb], al
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40d1ed
or eax, eax
jmp 0x40d1fb
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
jmp 0x40d255
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]
or eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], 0xffff
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
movzx ebx, byte [ebp - 0x3f]
lea ecx, [ebp - 0x40]
push ecx
push edx
call fcn.004198e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret