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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
push 0
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x78], ecx
call edi
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov word [esi], ax
add esi, 2
xor eax, eax
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x5c], 0x2710
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov ecx, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov dword [ebp - 8], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov byte [ebx + 0x62], al
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
jbe 0x413049
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push str.SELECT_RefitCout_MaxFlags_WWeight_SpeedWeight_JetWeight_SJetWeight_AccuWeight_ShapeRefitCount_KartHeadRefitItemID_KartTailRefitItemID_KartFlankRefitItemID_KartTireRefitItemID__FROM_KartRefit_WHERE_Uin__AND_KartID__
push dword [0x4918d8]
call ecx
add esp, 0x14
test eax, eax
jne 0x413013
push dword [ebp - 0x5c]
push 1
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0xc
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x413030
push 0
push dword [ebp - 8]
call esi
push 1
push dword [ebp - 8]
call esi
push 2
push dword [ebp - 8]
call esi
push 3
push dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0x68], eax
call esi
push 4
push dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0x58], eax
call esi
push 5
push dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0x48], eax
call esi
push 6
push dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0x44], eax
call esi
push 7
push dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0x40], eax
call esi
add esp, 0x40
push 8
push dword [ebp - 8]
call esi
push 9
push dword [ebp - 8]
call esi
push 0xa
push dword [ebp - 8]
call esi
push 0xb
push dword [ebp - 8]
call esi
add esp, 0x20
jmp 0x413030
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_errmsg]
add esp, 4
push eax
push 0x4802cc
call fcn.00410f10
add esp, 8
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ecx, dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 4
mov dword [ebp - 8], 0
cmp byte [ebx + 0x94], 1
jne 0x41306e
mov dword [ebp - 0x40], 0x1d
mov dword [ebp - 0x44], 0x1d
mov dword [ebp - 0x48], 0x1d
mov dword [ebp - 0x58], 0x1d
cmp dword [ebx + 0x70], 0
mov byte [ebp - 1], 0
je 0x413135
push 0
lea eax, [ebp - 8]
mov byte [ebp - 1], 1
push eax
push 0xffffffffffffffff
push str.SELECT__FROM_PetItem_Where_PetId__
push dword [0x4918d8]
call ecx
add esp, 0x14
test eax, eax
jne 0x4130fc
push dword [ebx + 0x70]
push 1
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x4130fc
push 5
push dword [ebp - 8]
call esi
push 6
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
call esi
push 7
push dword [ebp - 8]
mov dword [ebp - 0x20], eax
call esi
push 8
push dword [ebp - 8]
mov dword [ebp - 0x24], eax
call esi
push 9
push dword [ebp - 8]
mov dword [ebp - 0x28], eax
call esi
push 0xa
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
call esi
add esp, 0x30
jmp 0x41311d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push dword [ebp - 8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 8], 0
jmp 0x413159
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push str.SELECT__FROM_KartSkill_Where_KartId__
push dword [0x4918d8]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x4131e8
push dword [ebp + 8]
push 1
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x4131e8
push 1
push dword [ebp - 8]
call esi
push 2
push dword [ebp - 8]
mov byte [ebx + 0x62], al
call esi
push 3
push dword [ebp - 8]
mov dword [ebp - 0x34], eax
call esi
push 4
push dword [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x38], ecx
call esi
push 5
push dword [ebp - 8]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
call esi
push 6
push dword [ebp - 8]
mov dword [ebp - 0x6c], eax
call esi
push 7
push dword [ebp - 8]
mov dword [ebp - 0x50], eax
call esi
add esp, 0x38
mov dword [ebp - 0x54], eax
push dword [ebp - 8]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
mov dword [ebp - 8], 0
mov ecx, 1
cmovne eax, ecx
mov ecx, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
test eax, eax
cmovne eax, ecx
mov ecx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
test eax, eax
cmovne eax, ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x3c], eax
test ecx, ecx
jne 0x413235
mov ecx, dword [ebx + 0x30]
call fcn.00412c40
push dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
mov esi, eax
mov dword [ebp - 0x10], esi
call ebx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x64], 0
mov dword [ecx], eax
add ecx, 4
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 0x1f280
mov dword [ebp - 0x74], edx
sete cl
inc cl
add cl, byte [edx]
mov byte [esi], cl
inc esi
cmp byte [edx], 0
mov dword [ebp - 0xc], esi
jbe 0x41335a
lea eax, [edx + 8]
mov dword [ebp - 0x4c], eax
nop word [eax + eax]
push 0
call edi
mov word [esi], ax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [eax - 4]
mov dword [ebp - 0x70], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x18], edx
sub eax, 1
je 0x4132e8
sub eax, 0x7d0
je 0x4132d4
sub eax, 0x17ece
jne 0x413303
mov eax, dword [ebp - 0x40]
cwde
imul eax, eax, 0x12c
add edx, eax
jmp 0x413300
mov eax, dword [ebp - 0x44]
movsx ecx, ax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
mov eax, dword [ebp - 0x14]
lea eax, [eax + ecx*4]
jmp 0x4132fa
mov eax, dword [ebp - 0x48]
movsx ecx, ax
lea eax, [ecx + ecx*4]
lea edx, [edx + eax*2]
mov eax, dword [ebp - 0x14]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
push ecx
call ebx
push dword [ebp - 0x70]
mov dword [esi + 2], eax
call ebx
push dword [ebp - 0x18]
mov dword [esi + 6], eax
call ebx
push dword [ebp - 0x14]
mov dword [esi + 0xa], eax
add esi, 0xe
call ebx
mov dword [esi], eax
sub esi, dword [ebp - 0xc]
add esi, 4
movzx esi, si
push esi
call edi
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x4c], 0x14
mov word [ecx], ax
mov eax, esi
mov esi, ecx
mov ecx, dword [ebp - 0x64]
add esi, eax
inc ecx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x64], ecx
movzx eax, byte [eax]
cmp ecx, eax
jb 0x413290
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x6c], 0x1f280
jne 0x4133a8
push 0
call edi
push 0x309
mov word [esi], ax
call ebx
push 0x64
mov dword [esi + 2], eax
call ebx
push dword [ebp - 0x50]
mov dword [esi + 6], eax
call ebx
push dword [ebp - 0x54]
mov dword [esi + 0xa], eax
add esi, 0xe
call ebx
mov dword [esi], eax
sub esi, dword [ebp - 0xc]
add esi, 4
movzx esi, si
push esi
call edi
mov ecx, dword [ebp - 0xc]
mov word [ecx], ax
mov eax, esi
mov esi, ecx
add esi, eax
mov dword [ebp - 0xc], esi
push 0
call edi
push 0x22
mov word [esi], ax
call ebx
push 0x64
mov dword [esi + 2], eax
call ebx
push dword [ebp - 0x50]
mov dword [esi + 6], eax
call ebx
push dword [ebp - 0x54]
mov dword [esi + 0xa], eax
add esi, 0xe
call ebx
mov dword [esi], eax
sub esi, dword [ebp - 0xc]
add esi, 4
movzx esi, si
push esi
call edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
cmp byte [ebp - 1], 1
movss xmm0, dword [0x483d7c]
mov word [ecx], ax
mov eax, dword [ebp + 0xc]
movss dword [ebp + 0xc], xmm0
mov byte [eax + 0x63], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], edx
jne 0x413455
cmp dword [ebp - 0x1c], 1
jne 0x413417
mov eax, 0x51eb851f
mul dword [ebp - 0x20]
jmp 0x413435
cmp dword [ebp - 0x24], 1
jne 0x413427
mov eax, 0x51eb851f
mul dword [ebp - 0x28]
jmp 0x413435
cmp dword [ebp - 0x2c], 1
jne 0x413450
mov eax, 0x51eb851f
mul dword [ebp - 0x30]
shr edx, 5
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x483da0]
cvtpd2ps xmm0, xmm0
movss dword [ebp + 0xc], xmm0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x64], 0
mov edx, dword [eax + 4]
mov dword [ebp - 0x74], edx
mov al, byte [edx]
mov byte [esi + ecx], al
inc esi
add esi, ecx
cmp byte [edx], 0
mov dword [ebp - 0x14], esi
jbe 0x4134f1
lea eax, [edx + 8]
mov dword [ebp - 0x18], eax
nop dword [eax + eax]
push 0
call edi
mov word [esi], ax
mov eax, dword [ebp - 0x18]
push dword [eax - 4]
call ebx
mov dword [esi + 2], eax
add esi, 6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x483da0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp + 0xc]
call fcn.0046b290
push eax
call ebx
mov dword [esi], eax
sub esi, dword [ebp - 0x14]
add esi, 4
movzx esi, si
push esi
call edi
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x18], 0xc
mov word [ecx], ax
mov eax, esi
mov esi, ecx
mov ecx, dword [ebp - 0x64]
add esi, eax
inc ecx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x64], ecx
movzx eax, byte [eax]
cmp ecx, eax
jb 0x413480
mov eax, dword [ebp - 0x10]
push 0
mov edi, dword [eax + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
push dword [edi]
call ebx
mov dword [esi + 2], eax
push dword [edi + 4]
call ebx
mov dword [esi + 6], eax
push dword [edi + 8]
call ebx
mov dword [esi + 0xa], eax
push dword [edi + 0xc]
call ebx
mov dword [esi + 0xe], eax
push dword [edi + 0x10]
call ebx
mov dword [esi + 0x12], eax
push dword [edi + 0x14]
call ebx
mov dword [esi + 0x16], eax
push dword [edi + 0x18]
call ebx
mov dword [esi + 0x1a], eax
add esi, 0x1e
push dword [edi + 0x1c]
call ebx
mov ebx, dword [ebp - 0x14]
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx], ax
add ebx, esi
mov eax, dword [ebp - 0x10]
push 0
mov edi, dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebx], ax
push dword [edi]
call esi
mov dword [ebx + 2], eax
push dword [edi + 4]
call esi
mov dword [ebx + 6], eax
push dword [edi + 8]
call esi
mov dword [ebx + 0xa], eax
push dword [edi + 0xc]
call esi
mov dword [ebx + 0xe], eax
lea esi, [ebx + 0x12]
push dword [edi + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp - 0x10]
add esi, ebx
mov word [ebx], ax
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push dword [edi + 0x10]
call ebx
mov dword [esi], eax
push dword [edi + 0x14]
call ebx
mov dword [esi + 4], eax
push dword [edi + 0x18]
call ebx
mov dword [esi + 8], eax
push dword [edi + 0x1c]
call ebx
mov dword [esi + 0xc], eax
push dword [edi + 0x20]
call ebx
mov dword [esi + 0x10], eax
push dword [edi + 0x24]
call ebx
mov dword [esi + 0x14], eax
push dword [edi + 0x28]
call ebx
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x68]
cwde
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x2c]
lea eax, [eax + ecx*2]
push eax
call ebx
mov dword [esi + 0x1c], eax
push dword [edi + 0x30]
call ebx
mov dword [esi + 0x20], eax
push dword [edi + 0x34]
call ebx
mov dword [esi + 0x24], eax
push dword [edi + 0x38]
call ebx
mov dword [esi + 0x28], eax
push dword [edi + 0x3c]
call ebx
mov dword [esi + 0x2c], eax
push dword [edi + 0x40]
call ebx
mov dword [esi + 0x30], eax
push dword [edi + 0x44]
call ebx
mov dword [esi + 0x34], eax
push dword [edi + 0x48]
call ebx
mov dword [esi + 0x38], eax
push dword [edi + 0x4c]
call ebx
mov dword [esi + 0x3c], eax
push dword [edi + 0x50]
call ebx
mov dword [esi + 0x40], eax
push dword [edi + 0x54]
call ebx
mov dword [esi + 0x44], eax
push dword [edi + 0x58]
call ebx
mov dword [esi + 0x48], eax
push dword [edi + 0x5c]
call ebx
mov dword [esi + 0x4c], eax
push dword [edi + 0x60]
call ebx
mov dword [esi + 0x50], eax
push dword [edi + 0x64]
call ebx
mov dword [esi + 0x54], eax
push dword [edi + 0x68]
call ebx
mov dword [esi + 0x58], eax
push dword [edi + 0x6c]
call ebx
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 0x70]
lea edi, [esi + 0x61]
mov dword [ebp - 0x74], ecx
mov dword [ebp + 0xc], 0
mov al, byte [ecx]
mov byte [esi + 0x60], al
cmp byte [ecx], 0
jbe 0x4136c1
lea esi, [ecx + 4]
push dword [esi]
call ebx
mov ecx, dword [ebp + 0xc]
lea esi, [esi + 8]
mov dword [edi], eax
inc ecx
mov eax, dword [ebp - 0x74]
add edi, 4
mov dword [ebp + 0xc], ecx
movzx eax, byte [eax]
cmp ecx, eax
jb 0x4136a4
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], 0
mov ecx, dword [eax + 0x74]
mov dword [ebp - 0x74], ecx
mov al, byte [ecx]
mov byte [edi], al
inc edi
cmp byte [ecx], 0
jbe 0x413748
lea esi, [ecx + 8]
mov dword [ebp - 0x64], esi
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
add eax, 0xfffffff9
mov dword [ebp - 0x68], ecx
cmp eax, 2
ja 0x413708
mov eax, dword [ebp - 0x58]
cwde
imul eax, eax, 0x23
add ecx, eax
mov dword [ebp - 0x68], ecx
push dword [esi - 4]
call ebx
push dword [ebp - 0x68]
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0xc]
mov word [edi], ax
inc ecx
mov eax, dword [ebp - 0x74]
add edi, esi
mov esi, dword [ebp - 0x64]
add esi, 0xc
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x64], esi
movzx eax, byte [eax]
cmp ecx, eax
jb 0x4136e1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], 0
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x74], ecx
mov al, byte [ecx]
mov byte [edi], al
inc edi
cmp byte [ecx], 0
jbe 0x4137b5
lea esi, [ecx + 8]
mov dword [ebp + 0xc], esi
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
push dword [esi - 4]
call ebx
mov dword [edi + 2], eax
lea esi, [edi + 6]
mov eax, dword [ebp + 0xc]
push dword [eax]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x68]
mov word [edi], ax
inc ecx
mov eax, dword [ebp - 0x74]
add edi, esi
mov esi, dword [ebp + 0xc]
add esi, 0xc
mov dword [ebp - 0x68], ecx
mov dword [ebp + 0xc], esi
movzx eax, byte [eax]
cmp ecx, eax
jb 0x413768
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], 0
mov ecx, dword [eax + 0x7c]
mov dword [ebp - 0x74], ecx
mov al, byte [ecx]
mov byte [edi], al
inc edi
cmp byte [ecx], 0
jbe 0x413822
lea esi, [ecx + 8]
mov dword [ebp + 0xc], esi
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
push dword [esi - 4]
call ebx
mov dword [edi + 2], eax
lea esi, [edi + 6]
mov eax, dword [ebp + 0xc]
push dword [eax]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x68]
mov word [edi], ax
inc ecx
mov eax, dword [ebp - 0x74]
add edi, esi
mov esi, dword [ebp + 0xc]
add esi, 0xc
mov dword [ebp - 0x68], ecx
mov dword [ebp + 0xc], esi
movzx eax, byte [eax]
cmp ecx, eax
jb 0x4137d5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], 0
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x74], ecx
mov al, byte [ecx]
mov byte [edi], al
inc edi
cmp byte [ecx], 0
jbe 0x413892
lea esi, [ecx + 8]
mov dword [ebp + 0xc], esi
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
push dword [esi - 4]
call ebx
mov dword [edi + 2], eax
lea esi, [edi + 6]
mov eax, dword [ebp + 0xc]
push dword [eax]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x68]
mov word [edi], ax
inc ecx
mov eax, dword [ebp - 0x74]
add edi, esi
mov esi, dword [ebp + 0xc]
add esi, 0xc
mov dword [ebp - 0x68], ecx
mov dword [ebp + 0xc], esi
movzx eax, byte [eax]
cmp ecx, eax
jb 0x413845
cmp byte [ebp - 1], 1
jne 0x4138b9
cmp dword [ebp - 0x1c], 2
jne 0x4138a3
push dword [ebp - 0x20]
jmp 0x4138bb
cmp dword [ebp - 0x24], 2
jne 0x4138ae
push dword [ebp - 0x28]
jmp 0x4138bb
cmp dword [ebp - 0x2c], 2
jne 0x4138b9
push dword [ebp - 0x30]
jmp 0x4138bb
push 0
call ebx
push 0
mov dword [edi], eax
call ebx
push dword [ebp - 0x5c]
mov dword [edi + 4], eax
call ebx
push 0xffffffffffffffff
mov dword [edi + 8], eax
call ebx
mov ecx, dword [ebp - 0x38]
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x34]
or al, cl
mov word [edi + 0x10], 0xffff
mov ecx, dword [ebp - 0x3c]
or al, cl
mov byte [edi + 0x12], 0xff
or al, 0xf8
mov byte [edi + 0x13], al
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
push 0xffff
mov byte [edi + 0x19], al
call esi
push 0
mov word [edi + 0x1a], ax
call esi
mov word [edi + 0x1c], ax
mov dword [edi + 0x1e], 0
mov byte [edi + 0x22], 1
add edi, 0x23
push 0
call esi
push 0
mov word [edi], ax
call ebx
push 0
mov dword [edi + 2], eax
call ebx
push 0
mov dword [edi + 6], eax
call ebx
push 0
mov dword [edi + 0xa], eax
call ebx
push 0x2710
mov dword [edi + 0xe], eax
call ebx
push 0x7d0
mov dword [edi + 0x12], eax
call ebx
push 0xfffffce0
mov dword [edi + 0x16], eax
call ebx
push 0
mov dword [edi + 0x1a], eax
call ebx
push 0x7d0
mov dword [edi + 0x1e], eax
call ebx
push 0x46
mov dword [edi + 0x22], eax
call ebx
push 0x3e8
mov dword [edi + 0x26], eax
call ebx
push 0
mov dword [edi + 0x2a], eax
call ebx
push 0x12c
mov dword [edi + 0x2e], eax
call ebx
push 0xfa
mov dword [edi + 0x32], eax
call ebx
push 0xfa
mov dword [edi + 0x36], eax
call ebx
push 0x3e8
mov dword [edi + 0x3a], eax
call ebx
push 0xc1c
mov dword [edi + 0x3e], eax
call ebx
push 0x1194
mov dword [edi + 0x42], eax
call ebx
push 0
mov dword [edi + 0x46], eax
call ebx
push 0x3e8
mov dword [edi + 0x4a], eax
call ebx
push 0x1388
mov dword [edi + 0x4e], eax
call ebx
push 0x258
mov dword [edi + 0x52], eax
call ebx
push 0x1450
mov dword [edi + 0x56], eax
call ebx
push 0x514
mov dword [edi + 0x5a], eax
call ebx
push 0xfa0
mov dword [edi + 0x5e], eax
call ebx
push 0xdac
mov dword [edi + 0x62], eax
call ebx
push 0
mov dword [edi + 0x66], eax
call ebx
push 0
mov dword [edi + 0x6a], eax
call ebx
push 0
mov dword [edi + 0x6e], eax
call ebx
push 0xf4240
mov dword [edi + 0x72], eax
call ebx
push 0x55730
mov dword [edi + 0x76], eax
call ebx
push 0x177
mov dword [edi + 0x7a], eax
call ebx
push 0xbb8
mov dword [edi + 0x7e], eax
lea esi, [edi + 0x82]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
mov eax, esi
push 0
mov byte [eax + edi], 0xd
inc edi
add edi, eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
call ebx
push 0x13ec
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
lea ebx, [edi + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x1388
mov word [ebx], ax
call edi
push 0x13ec
mov dword [ebx + 2], eax
lea esi, [ebx + 6]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx], ax
lea edi, [ebx + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0x1644
mov word [edi], ax
call ebx
push 0x15e0
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
lea ebx, [edi + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x2328
mov word [ebx], ax
call edi
push 0x17d4
mov dword [ebx + 2], eax
lea esi, [ebx + 6]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx], ax
lea edi, [ebx + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0x2454
mov word [edi], ax
call ebx
push 0x19c8
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
lea ebx, [edi + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x2af8
mov word [ebx], ax
call edi
mov dword [ebx + 2], eax
push 0x1b58
lea esi, [ebx + 6]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx], ax
lea edi, [ebx + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0x2e18
mov word [edi], ax
call ebx
push 0x1bbc
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
lea ebx, [edi + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x3a98
mov word [ebx], ax
call edi
push 0x2454
mov dword [ebx + 2], eax
lea esi, [ebx + 6]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx], ax
lea edi, [ebx + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0x3e80
mov word [edi], ax
call ebx
push 0x2454
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
lea ebx, [edi + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x4e20
mov word [ebx], ax
call edi
push 0x2486
mov dword [ebx + 2], eax
lea esi, [ebx + 6]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx], ax
lea edi, [ebx + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0x61a8
mov word [edi], ax
call ebx
push 0x2454
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
lea ebx, [edi + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 0x7530
mov word [ebx], ax
call edi
push 0x2454
mov dword [ebx + 2], eax
lea esi, [ebx + 6]
call edi
mov dword [esi], eax
sub esi, ebx
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [ebx], ax
lea edi, [ebx + esi]
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0x88b8
mov word [edi], ax
call ebx
push 0x2454
mov dword [edi + 2], eax
lea esi, [edi + 6]
call ebx
mov dword [esi], eax
sub esi, edi
add esi, 4
movzx esi, si
push esi
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
add esi, edi
call ebx
mov dword [esi], eax
add esi, 4
push 0
call ebx
mov ebx, dword [ebp - 0x78]
mov dword [esi], eax
sub si, word [ebx]
add si, 4
movzx edi, si
mov esi, dword [ebx]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi], ax
mov eax, edi
add dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret