Function at 0x425c90
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2014
call fcn.004340e0
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, edx
mov dword [esp + 0x14], ecx
push edi
mov eax, dword [esi]
push eax
call ebx
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x20], eax
call ebx
push dword [esi + 8]
call ebx
mov ecx, dword [esi + 0x22]
mov edi, eax
push ecx
call ebx
mov ecx, dword [esi + 0x26]
add esi, 0x2a
push ecx
mov dword [esp + 0x18], esi
call ebx
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add eax, 4
push ecx
mov dword [esp + 0x18], eax
call ebx
mov eax, dword [esp + 0x14]
push dword [eax]
call ebx
mov eax, dword [esp + 0x14]
add eax, 5
mov dword [esp + 0x14], eax
push dword [eax]
call ebx
mov eax, dword [esp + 0x14]
push dword [eax + 4]
call ebx
mov ebx, dword [esp + 0x18]
mov edx, edi
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push 0
push 0
push 0
push esi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x78], 0
call fcn.004260b0
add esp, 0x10
mov ecx, ebx
call fcn.00425270
push dword [ebx + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x106
mov dword [esp + 0x24], eax
call esi
push 0
mov word [esp + 0x28], ax
call esi
push 0
mov word [esp + 0x2a], ax
call esi
push ecx
push 2
mov word [esp + 0x30], ax
movzx eax, word [ebx + 0x10]
push eax
push 1
push eax
push 0xa
lea eax, [esp + 0x38]
push eax
mov edx, 0x3b4
mov ecx, ebx
call fcn.004202d0
add esp, 0x1c
mov ecx, ebx
call fcn.00416100
mov ecx, ebx
call fcn.00418810
mov ecx, ebx
call fcn.004188e0
push 0
call esi
push 0x7f
mov word [esp + 0x24], ax
mov byte [esp + 0x26], 0
call edi
push ecx
mov dword [esp + 0x27], eax
mov edx, 0x2c5e
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push 2
push eax
movzx eax, word [ebx + 0x2c]
push 4
push eax
lea eax, [esp + 0x34]
push 7
push eax
call fcn.004202d0
add esp, 0x1c
mov ecx, ebx
call fcn.00416270
mov ecx, ebx
call fcn.004169d0
mov ecx, ebx
call fcn.00416b10
mov ecx, ebx
call fcn.00418630
push dword [ebx + 0x18]
call edi
push ecx
push 2
mov dword [esp + 0x28], eax
mov edx, 0x621a
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push eax
push 1
push eax
lea eax, [esp + 0x34]
mov word [esp + 0x38], 0x100
push 7
push eax
mov byte [esp + 0x42], 0
call fcn.004202d0
add esp, 0x1c
mov dword [esp + 0x10], 0
xor esi, esi
mov byte [esp + 0x14], 0
lea eax, [esp + 0x10]
push esi
push eax
push 0xffffffffffffffff
push str.SELECT_KartID_ID__FROM_KartStoneGroove_WHERE_Uin____
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 0x14
mov ebx, dword [sym.imp.sqlite3.dll_sqlite3_step]
test eax, eax
jne 0x425ec8
mov eax, dword [esp + 0x18]
push dword [eax + 0x18]
push 1
push dword [esp + 0x18]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x425ef3
push eax
call ebx
add esp, 4
cmp eax, 0x64
jne 0x425ef3
push 0
push dword [esp + 0x14]
call edi
push 1
push dword [esp + 0x1c]
mov dword [esp + esi*8 + 0x30], eax
call edi
mov dword [esp + esi*8 + 0x34], eax
add esp, 0x10
inc esi
cmp esi, 0x32
jae 0x425ec1
push dword [esp + 0x10]
call ebx
add esp, 4
cmp eax, 0x64
je 0x425e90
jmp 0x425ef3
mov byte [esp + 0x14], 1
jmp 0x425ef3
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_errmsg]
add esp, 4
push eax
push 0x4802cc
call fcn.00410f10
push dword [esp + 0x18]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 0xc
mov dword [esp + 0x10], esi
push dword [esp + 0x14]
lea eax, [esp + 0x24]
mov edx, esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00415d60
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x425fb4
cmp byte [esp + 0x14], 0
je 0x425fa2
push eax
xor esi, esi
call ebx
add esp, 4
cmp eax, 0x64
jne 0x425f7c
push 0
push dword [esp + 0x14]
call edi
push 1
push dword [esp + 0x1c]
mov dword [esp + esi*8 + 0x30], eax
call edi
mov dword [esp + esi*8 + 0x34], eax
add esp, 0x10
inc esi
cmp esi, 0x32
jae 0x425f61
push dword [esp + 0x10]
call ebx
add esp, 4
cmp eax, 0x64
je 0x425f30
jmp 0x425f7e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push 1
push eax
mov edx, esi
call fcn.00415f30
mov eax, dword [esp + 0x18]
add esp, 8
jmp 0x425f23
xor esi, esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov byte [esp + 0x14], 0
mov edx, esi
push dword [esp + 0x14]
push eax
call fcn.00415f30
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, dword [esp + 0x18]
push eax
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [esp + 0x10], 0
mov ecx, esi
call fcn.00425450
mov ecx, esi
call fcn.00425b30
push dword [esi + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push 0
mov dword [esp + 0x24], eax
call ebx
push ecx
push 2
mov word [esp + 0x2c], ax
mov edx, 0x358a
movzx eax, word [esi + 0x10]
mov ecx, esi
push eax
push 1
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x3a], 0
push 7
push eax
call fcn.004202d0
mov edx, dword [esi + 0x18]
add esp, 0x1c
mov ecx, esi
call fcn.00419660
push dword [esi + 0x18]
call edi
push 0
mov dword [esp + 0x24], eax
call ebx
push 0
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], 0
call edi
push 0
mov dword [esp + 0x2b], eax
call edi
push 0
mov dword [esp + 0x2f], eax
call edi
push 0
mov dword [esp + 0x33], eax
call edi
push 0
mov dword [esp + 0x37], eax
lea edi, [esp + 0x3d]
mov word [esp + 0x3b], 0x100
call ebx
push 0
mov word [esp + 0x3d], ax
mov byte [esp + 0x3f], 1
call ebx
push 4
mov word [esp + 0x40], ax
mov word [esp + 0x42], 0x506
call ebx
mov word [esp + 0x3c], ax
lea eax, [esp + 0x40]
sub eax, edi
push eax
call ebx
push ecx
push 2
mov word [esp + 0x41], ax
mov edx, 0x60bf
movzx eax, word [esi + 0x10]
mov ecx, esi
push eax
push 1
push eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.004202d0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret