Function at 0x420430
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
cmp esi, 0x12
jb 0x420623
mov al, byte [edi + 0x11]
movzx ecx, al
lea edx, [ecx + 0x12]
mov dword [ebp - 0xc], edx
cmp esi, edx
jb 0x420623
test al, al
je 0x420559
lea eax, [ecx + 1]
push eax
lea esi, [edi + 0x12]
call fcn.004332ac
movzx ecx, byte [edi + 0x11]
push ecx
push esi
push eax
mov dword [ebp - 8], eax
call fcn.00447720
movzx ecx, byte [edi + 0x11]
add esp, 0x10
mov eax, dword [ebp - 8]
mov byte [ecx + eax], 0
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov esi, eax
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.SELECT_Password__FROM_User__WHERE_Uin__
push dword [0x4918dc]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x42053b
lea eax, [esi - 0x2710]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x10
cmp eax, 0x64
jne 0x42053b
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_blob]
mov esi, dword [ebp - 8]
add esp, 8
mov ecx, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x420520
test dl, dl
je 0x42051c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x420520
add eax, 2
add ecx, 2
test dl, dl
jne 0x420500
xor eax, eax
jmp 0x420525
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42053e
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov dword [ebx + 0x14], 1
jmp 0x420547
mov esi, dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
push esi
call fcn.00433246
mov esi, dword [ebp + 8]
add esp, 4
mov edx, dword [ebp - 0xc]
sub esi, edx
mov dword [ebp + 8], esi
mov dword [ebp - 0xc], esi
cmp esi, 0x10
jb 0x420623
cmp byte [edi + 0x10], 0
lea eax, [edx + edi]
mov dword [ebp - 8], eax
push esi
je 0x4205b4
call fcn.0045276b
mov edi, eax
add esp, 4
test edi, edi
je 0x420636
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea esi, [ebx + 0x1c]
push eax
push edi
push esi
call fcn.00422870
add esp, 0xc
test eax, eax
jne 0x4205cf
push edi
call fcn.0045129e
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045276b
mov edi, eax
add esp, 4
test edi, edi
je 0x420636
push esi
push dword [ebp - 8]
push edi
call fcn.00447720
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov esi, edi
mov ecx, dword [sym.imp.WS2_32.dll_ntohs]
add edi, 0x10
cmp byte [eax + 0x11], 0
je 0x4205f4
movzx eax, word [esi + 0xc]
push eax
call ecx
mov ecx, dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebx + 0x2c], ax
movzx eax, word [esi + 0xe]
push eax
call ecx
movzx eax, ax
push eax
movzx eax, word [esi]
push edi
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, eax
mov ecx, ebx
call fcn.0041dd90
push esi
call fcn.0045129e
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx]
push 1
push dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebx + 0x14], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret