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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2050
call fcn.00463070
push ebx
push esi
mov esi, ecx
xor bl, bl
mov dword [ebp - 0x18], esi
push edi
mov dword [esi + 0x5c], 0
test edx, edx
je 0x41ed60
mov edi, 6
mov ecx, dword [edx]
test ecx, ecx
je 0x41ed56
movsx eax, bl
inc bl
mov dword [ebp + eax*4 - 0x50], ecx
add edx, 4
sub edi, 1
jne 0x41ed47
jmp 0x41ed65
mov dword [ebp - 0x50], esi
mov bl, 1
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x1f40
mov byte [ebp - 5], bl
mov dword [ebp - 0xc], edi
call edi
push dword [esi + 0x40]
mov dword [ebp - 0x2050], eax
call edi
mov dword [ebp - 0x204c], eax
xorps xmm0, xmm0
movzx eax, word [esi + 0x36]
push eax
movups xmmword [ebp - 0x2048], xmm0
movups xmmword [ebp - 0x2038], xmm0
call edi
push 0
mov dword [ebp - 0x2028], eax
call fcn.00480067
add esp, 4
push eax
call edi
mov byte [ebp - 0x2020], bl
mov esi, 0x14
mov dword [ebp - 0x2024], eax
lea ebx, [ebp - 0x201f]
nop dword [eax + eax]
push 0
call edi
mov dword [ebx], eax
add ebx, 4
sub esi, 1
jne 0x41edd0
mov al, byte [ebp - 5]
movaps xmm0, xmmword [0x4bf0c0]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], 5
movups xmmword [ebp - 0x38], xmm0
test al, al
jle 0x41ee27
xor esi, esi
movzx ebx, al
mov eax, dword [ebp + esi - 0x50]
push dword [eax + 0x18]
call edi
mov ecx, dword [ebp + esi - 0x38]
lea esi, [esi + 4]
mov dword [ebp + ecx*4 - 0x201f], eax
sub ebx, 1
jne 0x41ee05
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
movzx eax, word [esi + 0x48]
push eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x10], eax
call eax
push 0
mov word [ebx], ax
call edi
mov dword [ebx + 2], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push str.SELECT_Record__FROM_MapRecord__WHERE_Uin__AND_MapID__
push dword [esi + 0x1a0]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xffffffff
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x41eeb6
push dword [ebp - 0x20]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push 1
push dword [ebp - 4]
call esi
push dword [ebp - 0x1c]
push 2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x41eeb6
push 0
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
push dword [ebp - 0x14]
call edi
mov dword [ebx + 6], eax
mov al, byte [ebp - 5]
mov byte [ebx + 0xa], 0
mov byte [ebx + 0xb], al
add ebx, 0xc
test al, al
jle 0x41ef4e
lea ecx, [ebp - 0x50]
movzx eax, al
lea esi, [ebx + 6]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
nop word [eax + eax]
push 0
call dword [ebp - 0x10]
mov word [ebx], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push dword [eax + 0x18]
call edi
mov ecx, dword [ebp - 4]
mov dword [esi - 4], eax
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x18]
jne 0x41ef14
push dword [eax + 0x30]
jmp 0x41ef2c
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x78], 0
jne 0x41ef27
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x41ef0f
push ecx
jmp 0x41ef2c
push 0x2724
call edi
mov ecx, esi
push 0xb
mov dword [ecx], eax
mov byte [esi + 4], 0
call dword [ebp - 0x10]
add dword [ebp - 4], 4
add esi, 0xb
mov word [ebx], ax
add ebx, 0xb
sub dword [ebp - 0x14], 1
jne 0x41eef0
mov dword [ebx], 0xa
push 0x32
mov byte [ebx + 4], 0x32
add ebx, 5
push 0
push ebx
call fcn.00476670
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx + 0x32], 0
mov byte [ebx + 0x36], 4
push 0xffff
call esi
push 0xc8
mov word [ebx + 0x37], ax
call edi
push 0xc8
mov dword [ebx + 0x39], eax
call edi
push 0
mov dword [ebx + 0x3d], eax
call edi
mov dword [ebx + 0x41], eax
push 0
mov byte [ebx + 0x45], 0
call edi
mov dword [ebx + 0x46], eax
mov word [ebx + 0x4a], 0
mov byte [ebx + 0x4c], 1
add ebx, 0x4d
push 0
call esi
push 0
mov word [ebx], ax
lea esi, [ebx + 2]
call edi
push 0
mov dword [esi], eax
call edi
push 0
mov dword [esi + 4], eax
call edi
push 0xdc
mov dword [esi + 8], eax
call edi
push 0xf
mov dword [esi + 0xc], eax
call edi
push 0
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
add esi, 0x18
push 0
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
push esi
call dword [ebp - 0x10]
mov word [ebx], ax
add ebx, esi
push 0
mov byte [ebx], 0
call edi
mov dword [ebx + 1], eax
push 0
mov byte [ebx + 5], 0
call edi
push 0
mov dword [ebx + 6], eax
call edi
push 0
mov dword [ebx + 0xa], eax
call edi
mov dword [ebx + 0xe], eax
mov byte [ebx + 0x12], 1
add ebx, 0x13
push 0
call dword [ebp - 0x10]
mov word [ebx], ax
mov eax, dword [ebp - 0x18]
lea esi, [ebx + 2]
push dword [eax + 0x18]
call edi
push 0
mov dword [esi], eax
call edi
mov dword [esi + 4], eax
push 0
mov byte [esi + 8], 0
call edi
push 0
mov dword [esi + 9], eax
call dword [ebp - 0x10]
mov word [esi + 0xd], ax
push 4
mov word [esi + 0xf], 0
call dword [ebp - 0x10]
mov word [esi + 0xd], ax
push 0
mov byte [esi + 0x11], 0
call edi
mov dword [esi + 0x12], eax
add esi, 0x16
mov byte [esi], 0
sub esi, ebx
inc esi
push esi
call dword [ebp - 0x10]
mov word [ebx], ax
add ebx, esi
push 0
mov word [ebx], 0
call edi
mov esi, dword [ebp - 0x18]
mov dword [ebx + 2], eax
mov eax, dword [esi + 0x74]
test eax, eax
je 0x41f2b7
cmp eax, 0xfffc
je 0x41f2b7
cmp eax, 0xfffd
je 0x41f2b7
mov edi, dword [ebp - 0x10]
mov byte [ebx + 6], 5
add ebx, 7
xor esi, esi
mov dword [ebp - 4], esi
push 0
call edi
mov word [ebx], ax
lea edi, [ebx + 2]
mov eax, dword [0x4d184c]
push dword [esi + eax]
call dword [ebp - 0xc]
mov dword [edi], eax
xorps xmm0, xmm0
mov eax, dword [0x4d184c]
movups xmmword [edi + 4], xmm0
mov byte [edi + 0x14], 0
push 0
movups xmm0, xmmword [esi + eax + 8]
movups xmmword [edi + 4], xmm0
mov al, byte [esi + eax + 0x18]
mov byte [edi + 0x14], al
xorps xmm0, xmm0
movups xmmword [edi + 0x15], xmm0
mov byte [edi + 0x25], 0
add edi, 0x26
call dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea esi, [edi + 2]
mov word [edi], ax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x1c]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x20]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x24]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x28]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0xc], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x2c]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x30]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x34]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x38]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x3c]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x40]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x24], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x44]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x28], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x48]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x4c]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x50]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x34], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x54]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x38], eax
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x58]
call dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3c], eax
add esi, 0x40
mov eax, dword [0x4d184c]
push dword [ecx + eax + 0x5c]
call dword [ebp - 0xc]
mov dword [esi], eax
sub esi, edi
add esi, 4
push esi
call dword [ebp - 0x10]
mov word [edi], ax
mov ecx, 0x3f
mov eax, dword [0x4d184c]
add edi, esi
mov dword [ebp - 0x1c], edi
mov esi, 0x4b6b48
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
movzx eax, word [ecx + eax + 4]
push eax
call edi
mov word [esi + 0xfc], ax
add esi, 0xfe
push 0
call edi
mov word [esi], ax
sub esi, ebx
add esi, 2
push esi
call edi
mov word [ebx], ax
add ebx, esi
mov esi, dword [ebp - 4]
add esi, 0x60
mov dword [ebp - 4], esi
cmp esi, 0x1e0
jb 0x41f0c6
mov edi, dword [ebp - 0xc]
jmp 0x41f2be
mov byte [ebx + 6], 0
add ebx, 7
mov byte [ebx], 0
mov esi, 0x14
inc ebx
mov dword [ebp - 0x1c], ebx
nop word [eax + eax]
push 0
call edi
mov dword [ebx], eax
add ebx, 4
sub esi, 1
jne 0x41f2d0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
cmp dword [esi + 0x74], 0
je 0x41f312
mov ebx, dword [ebp - 0x1c]
mov esi, 1
mov dword [ebp - 0x14], 5
nop dword [eax]
push esi
call edi
inc esi
mov dword [ebx], eax
sub dword [ebp - 0x14], 1
lea ebx, [ebx + 4]
jne 0x41f300
mov ebx, dword [ebp - 0x10]
mov edi, ebx
mov ecx, 0x3b
mov esi, 0x4b6c48
mov edx, 0x1fd
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x18]
push 1
push 2
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x36]
push 3
push eax
lea eax, [ebp - 0x2050]
sub ebx, eax
add ebx, 0xec
push ebx
push eax
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret