Function at 0x414350
Capabilities:
Contain obfuscated stackstrings
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cf8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ecx
mov eax, 0x2424
call fcn.004340e0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edi
xor cl, cl
test edx, edx
je 0x4143c6
mov eax, 6
mov dword [ebp - 0x2c], eax
mov esi, dword [edx]
test esi, esi
je 0x4143b6
movsx eax, cl
mov dword [ebp + eax*4 - 0x9c], esi
inc cl
mov eax, dword [ebp - 0x2c]
add edx, 4
sub eax, 1
mov dword [ebp - 0x2c], eax
jne 0x4143a1
mov byte [ebp - 0x19], cl
jmp 0x4143d0
mov dword [ebp - 0x9c], edi
mov byte [ebp - 0x19], 1
push 0x1f40
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x80], esi
call esi
mov dword [ebp - 0x2438], eax
push dword [edi + 0x40]
call esi
mov dword [ebp - 0x2434], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x2430], xmm0
movups xmmword [ebp - 0x2420], xmm0
movzx eax, word [edi + 0x36]
push eax
call esi
mov dword [ebp - 0x2410], eax
push 0
call fcn.00451236
add esp, 4
push eax
call esi
mov dword [ebp - 0x240c], eax
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x2408], al
lea edi, [ebp - 0x2407]
mov dword [ebp - 0x2c], 0x14
push 0
call esi
mov dword [edi], eax
add edi, 4
sub dword [ebp - 0x2c], 1
jne 0x414438
mov dword [ebp - 0x24], edi
movaps xmm0, xmmword [0x483d90]
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 5
mov al, byte [ebp - 0x19]
test al, al
movzx eax, al
mov dword [ebp - 0x2c], eax
jle 0x4144ae
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], eax
nop dword [eax + eax]
mov eax, dword [ebp + edx - 0x9c]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp + edx - 0x7c]
lea edi, [ebp - 0x2407]
lea edi, [edi + eax*4]
push ecx
call esi
mov dword [edi], eax
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
sub dword [ebp - 0x28], 1
jne 0x414480
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + 0x48]
push eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x28], eax
call eax
mov word [edi], ax
push 0
call esi
mov dword [edi + 2], eax
add edi, 6
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x3c], ecx
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0xffffffff
push 0
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push str.SELECT_Record__FROM_MapRecord__WHERE_Uin__AND_MapID__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x414552
push dword [ebp - 0x38]
push 1
push dword [ebp - 0x20]
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
call edi
add esp, 0xc
push dword [ebp - 0x3c]
push 2
push dword [ebp - 0x20]
call edi
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x41454f
push 0
push dword [ebp - 0x20]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 0x20], 0
push dword [ebp - 0x30]
call esi
mov dword [edi], eax
mov byte [edi + 4], 0
mov al, byte [ebp - 0x19]
mov byte [edi + 5], al
add edi, 6
test al, al
jle 0x4145e5
lea eax, [edi + 0xa]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x24], eax
nop dword [eax]
push 0
call dword [ebp - 0x28]
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
push dword [eax + 0x18]
call esi
mov ecx, dword [ebp - 0x20]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x34]
je 0x4145bc
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x4145bc
push ecx
jmp 0x4145bf
push dword [eax + 0x30]
call esi
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax - 4], ecx
mov byte [eax], 0
push 0xb
call dword [ebp - 0x28]
mov word [edi], ax
add edi, 0xb
add dword [ebp - 0x20], 0xb
add dword [ebp - 0x24], 4
sub dword [ebp - 0x2c], 1
jne 0x414590
mov dword [edi], 0xa
mov byte [edi + 4], 0x32
add edi, 5
push 0x32
push 0
push edi
call fcn.00447cb0
add esp, 0xc
mov dword [edi + 0x32], 0
mov byte [edi + 0x36], 4
push 0xffff
call dword [ebp - 0x28]
mov word [edi + 0x37], ax
push 0xc8
call esi
mov dword [edi + 0x39], eax
push 0xc8
call esi
mov dword [edi + 0x3d], eax
push 0
call esi
mov dword [edi + 0x41], eax
mov byte [edi + 0x45], 0
push 0
call esi
mov dword [edi + 0x46], eax
mov word [edi + 0x4a], 0
mov byte [edi + 0x4c], 1
add edi, 0x4d
mov dword [ebp - 0x24], edi
push 0
call dword [ebp - 0x28]
mov word [edi], ax
push 0
call esi
mov dword [edi + 2], eax
push 0
call esi
mov dword [edi + 6], eax
push 0
call esi
mov dword [edi + 0xa], eax
push 0xdc
call esi
mov dword [edi + 0xe], eax
push 0xf
call esi
mov dword [edi + 0x12], eax
push 0
call esi
mov dword [edi + 0x16], eax
push 0
call esi
mov dword [edi + 0x1a], eax
add edi, 0x1e
sub edi, dword [ebp - 0x24]
push edi
call dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov word [ecx], ax
add ecx, edi
mov dword [ebp - 0x24], ecx
mov edi, ecx
mov byte [edi], 0
push 0
call esi
mov dword [edi + 1], eax
mov byte [edi + 5], 0
push 0
call esi
mov dword [edi + 6], eax
push 0
call esi
mov dword [edi + 0xa], eax
push 0
call esi
mov dword [edi + 0xe], eax
mov byte [edi + 0x12], 1
add edi, 0x13
mov dword [ebp - 0x24], edi
push 0
call dword [ebp - 0x28]
mov word [edi], ax
mov eax, dword [ebp - 0x34]
push dword [eax + 0x18]
call esi
mov dword [edi + 2], eax
push 0
call esi
mov dword [edi + 6], eax
mov byte [edi + 0xa], 0
push 0
call esi
mov dword [edi + 0xb], eax
push 0
call dword [ebp - 0x28]
mov word [edi + 0xf], ax
mov word [edi + 0x11], 0
push 4
call dword [ebp - 0x28]
mov word [edi + 0xf], ax
mov byte [edi + 0x13], 0
push 0
call esi
mov dword [edi + 0x14], eax
mov byte [edi + 0x18], 0
add edi, 0x19
sub edi, dword [ebp - 0x24]
push edi
call dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov word [ecx], ax
add ecx, edi
mov dword [ebp - 0x24], ecx
mov edi, ecx
mov word [edi], 0
push 0
call esi
mov dword [edi + 2], eax
lea ecx, [edi + 7]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x78], 0
jne 0x414755
mov byte [edi + 6], 0
mov edi, ecx
jmp 0x414d0c
mov byte [edi + 6], 5
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
push str..BotNPCListInfo.yml
lea ecx, [ebp - 0x7c]
call fcn.00406da0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004348f0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.004080d0
lea ecx, [ebp - 0xc4]
call fcn.00405240
mov edx, eax
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x64]
call fcn.00410f40
mov byte [ebp - 4], 4
mov dword [ebp - 0x2c], 0
xor eax, eax
nop dword [eax + eax]
cmp eax, edx
jae 0x414cf1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00409e40
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x64]
call fcn.00411110
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xec]
call fcn.00404dc0
push 0
call dword [ebp - 0x28]
mov word [edi], ax
push str.NpcID
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 2], eax
add edi, 6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x114]
call fcn.00404dc0
push str.RoomName
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call fcn.0041a7a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x13c]
call fcn.00404dc0
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov byte [edi + 0x10], 0
lea eax, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0x10
cmovae eax, dword [ebp - 0x7c]
push dword [ebp - 0x6c]
push eax
push edi
call fcn.00447720
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [edi + 0x11], xmm0
mov byte [edi + 0x21], 0
add edi, 0x22
mov dword [ebp - 0x30], edi
push 0
call dword [ebp - 0x28]
mov word [edi], ax
push str.RoleID
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 2], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x164]
call fcn.00404dc0
push str.HairID
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 6], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18c]
call fcn.00404dc0
push str.FaceID
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0xa], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1b4]
call fcn.00404dc0
push str.GlassID
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0xe], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1dc]
call fcn.00404dc0
push str.CoatID
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0xe
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x12], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x204]
call fcn.00404dc0
push str.GloveID
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x16], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x22c]
call fcn.00404dc0
push str.TrousersID
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x10
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x1a], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x254]
call fcn.00404dc0
push str.PersonarID
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x11
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x1e], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x27c]
call fcn.00404dc0
push str.TattooID
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x12
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x22], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a4]
call fcn.00404dc0
push str.WingID
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x13
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x26], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2cc]
call fcn.00404dc0
push str.DecoratorID
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x14
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x2a], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2f4]
call fcn.00404dc0
push str.KartID
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x15
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x2e], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x31c]
call fcn.00404dc0
push str.ColorID
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x16
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x32], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x344]
call fcn.00404dc0
push str.TrackID
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x17
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x36], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x36c]
call fcn.00404dc0
push str.EffectID
lea eax, [ebp - 0x394]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x18
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x3a], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x394]
call fcn.00404dc0
push str.BrandID
lea eax, [ebp - 0x3bc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x19
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x3e], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3bc]
call fcn.00404dc0
push str.TailID
lea eax, [ebp - 0x3e4]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x1a
mov ecx, eax
call fcn.0040a160
push eax
call esi
mov dword [edi + 0x42], eax
add edi, 0x46
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3e4]
call fcn.00404dc0
sub edi, dword [ebp - 0x30]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push edi
call dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
mov word [edx], ax
add edi, edx
mov ecx, 0x3f
mov esi, 0x480430
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x3c]
add esi, edx
push str.MaxLevel
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00409fd0
mov byte [ebp - 4], 0x1b
mov ecx, eax
call fcn.0040a160
movzx eax, ax
push eax
mov edi, dword [ebp - 0x28]
call edi
mov word [esi + 0xfc], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x40c]
call fcn.00404dc0
push 0
call edi
mov word [esi + 0xfe], ax
add esi, 0x100
mov edi, dword [ebp - 0x20]
sub esi, edi
mov dword [ebp - 0x38], esi
push esi
call dword [ebp - 0x28]
mov word [edi], ax
add edi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x84], edi
lea ecx, [ebp - 0x434]
call fcn.00410f40
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x64]
call fcn.00411170
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x434]
call fcn.00404dc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x7c]
call fcn.004080d0
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x80]
mov edx, dword [ebp - 0x24]
jmp 0x4147c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00404dc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc4]
call fcn.00404dc0
mov dword [ebp - 4], 0xffffffff
mov byte [edi], 0
inc edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], 0x14
push 0
call esi
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x20], edi
sub dword [ebp - 0x30], 1
jne 0x414d21
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x78], 0
je 0x414d6b
mov eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 5
nop dword [eax + eax]
push eax
call esi
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
add ecx, 4
mov dword [ebp - 0x2c], ecx
sub dword [ebp - 0x28], 1
jne 0x414d50
mov ecx, 0x3b
mov esi, 0x480540
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
add ecx, 0xec
lea eax, [ebp - 0x2438]
sub ecx, eax
push ecx
push 2
mov esi, dword [ebp - 0x34]
movzx eax, word [esi + 0x10]
push eax
push 3
movzx eax, word [esi + 0x36]
push eax
push ecx
lea eax, [ebp - 0x2438]
push eax
mov edx, 0x1fd
mov ecx, esi
call fcn.004202d0
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret