Function at 0x458490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4024
call fcn.00463070
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, ecx
push edi
mov edi, edx
mov eax, dword [edi]
push eax
call esi
mov eax, dword [edi + 4]
push eax
call esi
mov al, byte [edi + 8]
mov byte [esp + 0x1c], al
mov al, byte [edi + 9]
mov byte [esp + 0xc], al
mov eax, dword [edi + 0xa]
push eax
call esi
movzx ecx, word [edi + 0xe]
add edi, 0x10
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov esi, dword [ebx + 0x18]
movzx eax, ax
movzx ecx, ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov al, byte [ecx + edi]
mov ecx, 0x4d2bc8
mov byte [esp + 0x10], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00427120
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x4589bc
cmp esi, dword [eax + 0x10]
jl 0x4589bc
mov ecx, str.reg_on
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458547
test dl, dl
je 0x458543
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458547
add eax, 2
add ecx, 2
test dl, dl
jne 0x458527
xor eax, eax
jmp 0x45854c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4585a5
push 0xffff
mov byte [0x4cda6d], 1
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4bdff4]
push 1
push 1
mov word [esp + 0x38], ax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
push 0x13
mov byte [esp + 0x4a], 0x10
movups xmmword [esp + 0x4b], xmm0
lea eax, [esp + 0x48]
push eax
mov edx, 0x6e
mov ecx, ebx
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.reg_off
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4585d0
test dl, dl
je 0x4585cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4585d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4585b0
xor eax, eax
jmp 0x4585d5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4585f5
push 0xffff
mov byte [0x4cda6d], al
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be010]
jmp 0x458569
mov ecx, str.prop_on
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458620
test dl, dl
je 0x45861c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458620
add eax, 2
add ecx, 2
test dl, dl
jne 0x458600
xor eax, eax
jmp 0x458625
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458647
push 0xffff
mov byte [0x4cda6c], 1
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be02c]
jmp 0x458569
mov ecx, str.prop_off
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458670
test dl, dl
je 0x45866c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458670
add eax, 2
add ecx, 2
test dl, dl
jne 0x458650
xor eax, eax
jmp 0x458675
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458695
push 0xffff
mov byte [0x4cda6c], al
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be04c]
jmp 0x458569
push 4
push str.kick
push edi
call fcn.00483eb0
add esp, 0xc
test eax, eax
jne 0x4587bc
push 0x4be068
push edi
call fcn.004818a5
add esp, 8
test eax, eax
jne 0x458703
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be06c]
push 1
push 1
mov word [esp + 0x38], ax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
movups xmmword [esp + 0x3f], xmm0
push 2
movups xmm0, xmmword [0x4be07c]
push eax
mov byte [esp + 0x46], 0x20
movups xmmword [esp + 0x57], xmm0
push 0x23
jmp 0x45858a
push 0x4be068
push 0
call fcn.004818a5
add esp, 8
test eax, eax
je 0x4586bf
push eax
call fcn.00481866
add esp, 4
mov ecx, eax
call fcn.0045aff0
test eax, eax
jne 0x458770
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be31c]
push 1
push 1
mov word [esp + 0x38], ax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
movups xmmword [esp + 0x43], xmm0
push eax
movq xmm0, qword [0x4be32c]
mov byte [esp + 0x46], 0x18
movq qword [esp + 0x57], xmm0
push 0x1b
jmp 0x45858a
push ecx
mov edx, 0x4be304
mov ecx, eax
call fcn.00434e00
add esp, 4
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be338]
push 1
mov word [esp + 0x34], ax
mov eax, dword [0x4be348]
push 1
mov dword [esp + 0x4b], eax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x46], 0x14
push 0x17
jmp 0x458585
push 4
push str.kof
push edi
call fcn.00483eb0
add esp, 0xc
test eax, eax
jne 0x45883c
push 0x4be068
push edi
call fcn.004818a5
add esp, 8
test eax, eax
je 0x4586bf
push 0x4be068
push 0
call fcn.004818a5
add esp, 8
test eax, eax
je 0x4586bf
push eax
call fcn.00481866
add esp, 4
mov esi, eax
push 0x4be068
push 0
call fcn.004818a5
add esp, 8
test eax, eax
je 0x4586bf
push eax
call fcn.00481866
add esp, 4
mov edx, esi
mov ecx, ebx
push eax
call fcn.00459110
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x4be098
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458863
test dl, dl
je 0x45885f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458863
add eax, 2
add ecx, 2
test dl, dl
jne 0x458843
xor eax, eax
jmp 0x458868
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4588f0
push dword [0x4d2bc4]
lea eax, [esp + 0x34]
push 0x4be09c
push eax
call fcn.00453c40
add esp, 0xc
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x30]
mov word [esp + 0x2030], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4588a2
sub ecx, edx
lea eax, [esp + 0x30]
push ecx
push eax
lea eax, [esp + 0x203b]
mov dword [esp + 0x1c], ecx
push eax
mov byte [esp + 0x203e], cl
call fcn.004760e0
movzx eax, word [ebx + 0x10]
add esp, 0xc
push 1
push 1
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov eax, dword [esp + 0x28]
add eax, 3
push eax
lea eax, [esp + 0x2048]
jmp 0x45858e
push 4
push str.room
push edi
call fcn.00483eb0
add esp, 0xc
test eax, eax
jne 0x4589bc
push 0x4be068
push edi
call fcn.004818a5
push 0x4be068
push 0
call fcn.004818a5
push eax
call fcn.00481866
add esp, 0x14
mov ecx, eax
call fcn.00454420
test eax, eax
jne 0x45897b
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4be0bc]
push 1
mov word [esp + 0x2034], ax
movzx eax, word [ebx + 0x10]
push 1
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x2046], 0x10
lea eax, [esp + 0x2044]
movups xmmword [esp + 0x2047], xmm0
push 0x13
jmp 0x45858e
add eax, 0x26
push eax
lea eax, [esp + 0x34]
push 0x4be0d0
push eax
call fcn.00453c40
add esp, 0xc
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 0x30]
mov word [esp + 0x2030], ax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4589b0
jmp 0x4588a9
mov esi, dword [ebx + 0x18]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], esi
push eax
mov ecx, 0x4d2c04
call fcn.00427120
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x458a85
cmp esi, dword [eax + 0x10]
jl 0x458a85
push edi
call fcn.00481866
add esp, 4
cmp eax, 0x2710
jle 0x458a85
push edi
call fcn.00481866
mov edx, dword [ebx + 0x18]
add esp, 4
mov esi, eax
mov ecx, ebx
push 0
push 0xffffffffffffffff
push 1
push esi
call fcn.00412360
push 0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0xffffffff
mov byte [esp + 0x50], 0
call fcn.00480067
add esp, 0x14
mov dword [esp + 0x40], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x44], 0
mov edx, 1
mov dword [esp + 0x48], 0
mov ecx, ebx
push eax
call fcn.0044ff30
add esp, 4
lea eax, [esp + 0x30]
mov ecx, ebx
push 0xffffffffffffffff
push 1
sub esp, 8
push eax
call fcn.00448fe0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.ob_on
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458ab0
test dl, dl
je 0x458aac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458ab0
add eax, 2
add ecx, 2
test dl, dl
jne 0x458a90
xor eax, eax
jmp 0x458ab5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458aca
lea edx, [eax + 1]
mov ecx, ebx
call fcn.00457e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.ob_off
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458af1
test dl, dl
je 0x458aed
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458af1
add eax, 2
add ecx, 2
test dl, dl
jne 0x458ad1
xor eax, eax
jmp 0x458af6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458b0a
xor edx, edx
mov ecx, ebx
call fcn.00457e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x1c]
cmp al, 1
jne 0x458c18
cmp byte [esp + 0xc], 0
jne 0x458dcb
push 0x4be0f0
push edi
call fcn.00484ef3
add esp, 8
test eax, eax
jne 0x458dcb
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x458b57
cmp eax, 0xfffd
je 0x458b57
cmp eax, 0xfffc
je 0x458b57
cmp eax, 0xfffb
jne 0x4590d5
movzx eax, word [ebx + 0x10]
mov edx, 0x202
push 1
push 2
push eax
movzx eax, word [ebx + 0x36]
mov ecx, ebx
push 3
push eax
push 4
push 0x4b69ec
call fcn.00437370
movzx eax, word [ebx + 0x34]
add esp, 0x1c
test ax, ax
je 0x458bfa
mov ecx, eax
call fcn.00454420
mov esi, eax
test esi, esi
je 0x458bfa
cmp byte [esi + 0x23], 1
mov al, byte [esi + 0x60]
jne 0x458bdf
cmp al, 6
jne 0x458bb5
push 6
mov edx, esi
mov ecx, ebx
call fcn.00454e90
add esp, 4
mov ecx, ebx
call fcn.004477d0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x458bd6
push 0xffffffffffffffff
push eax
push dword [0x4d2d54]
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
test eax, eax
je 0x458bd6
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
jmp 0x458bfa
cmp al, 6
jne 0x458bf1
push 0
mov edx, esi
mov ecx, ebx
call fcn.00454e90
add esp, 4
xor edx, edx
mov ecx, ebx
call fcn.00455ed0
xor edx, edx
mov ecx, ebx
call fcn.00456130
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 3
jne 0x458d74
movzx eax, byte [esp + 0x10]
mov dword [esp + 0xc], 0
cmp eax, 0xc
ja case.0x458c39.4
movzx eax, byte [eax + 0x4590f4]
jmp dword [eax*4 + 0x4590dc]
mov dword [esp + 0xc], 0x27df
jmp case.0x458c39.4
mov dword [esp + 0xc], 0x3987
jmp case.0x458c39.4
mov dword [esp + 0xc], 0x3988
jmp case.0x458c39.4
mov dword [esp + 0xc], 0x4981
jmp case.0x458c39.4
mov dword [esp + 0xc], 0x10451
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0xffffffffffffffff
push str.SELECT_ItemNum_from_Item_WHERE_Uin__AND_ItemID__
push dword [ebx + 0x1a0]
mov dword [esp + 0x30], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x458ce9
push dword [ebx + 0x18]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push 1
push dword [esp + 0x20]
call esi
add esp, 0xc
push dword [esp + 0xc]
push 2
push dword [esp + 0x20]
call esi
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x458ce9
push 0
push dword [esp + 0x1c]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov dword [esp + 0x1c], eax
push dword [esp + 0x18]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
cmp dword [esp + 0x1c], 1
jl 0x458d28
mov edx, dword [esp + 0xc]
mov ecx, ebx
push 1
call fcn.00450270
add esp, 4
mov edx, edi
mov ecx, ebx
push dword [esp + 0x10]
push dword [esp + 0x24]
call fcn.00453c80
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movq xmm0, qword [0x4be0f4]
mov word [esp + 0x30], ax
mov eax, dword [0x4be0fc]
mov dword [esp + 0x3b], eax
mov al, byte [0x4be100]
push 1
push 1
mov byte [esp + 0x47], al
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x46], 0xd
movq qword [esp + 0x47], xmm0
push 0x10
jmp 0x45858a
cmp al, 4
je 0x458dcb
test al, al
jne 0x4590d5
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0045aff0
test eax, eax
je 0x4590d5
push edi
push dword [esp + 0x24]
mov edx, ebx
mov ecx, eax
push esi
mov esi, dword [esp + 0x18]
push esi
push 0
call fcn.004593b0
add esp, 0x14
mov edx, ebx
mov ecx, ebx
push edi
push dword [esp + 0x24]
push dword [esp + 0x20]
push esi
push 0
call fcn.004593b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx + 0x34]
call fcn.00454420
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x4590d5
cmp byte [esp + 0x1c], 1
jne 0x458e37
push 0x4be104
push edi
call fcn.00475d50
add esp, 8
test eax, eax
je 0x458e37
lea eax, [edi + 4]
push eax
call fcn.00481866
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x64], eax
mov ebx, 6
add esi, 0x38
mov ecx, dword [esi]
test ecx, ecx
je 0x458e28
mov edx, dword [ecx + 0x18]
push edi
call fcn.00457880
add esp, 4
add esi, 4
sub ebx, 1
jne 0x458e16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x4be108
mov eax, edi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458e60
test dl, dl
je 0x458e5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458e60
add eax, 2
add ecx, 2
test dl, dl
jne 0x458e40
xor eax, eax
jmp 0x458e65
sbb eax, eax
or eax, 1
test eax, eax
jne 0x458f56
movzx eax, word [esi + 0x1a]
cmp dword [ebx + 0x10], eax
jne 0x458f56
mov edx, dword [sym.imp.WS2_32.dll_htons]
lea eax, [esi + 0x38]
mov ecx, 6
mov byte [esi + 0x78], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x458f06
cmp eax, ebx
je 0x458f06
push 0xffff
call edx
mov word [esp + 0x2030], ax
lea edi, [esp + 0x2033]
mov byte [esp + 0x2032], 0x7e
mov ecx, 0x1f
mov esi, 0x4be118
mov edx, 0x6e
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
push 1
push 1
movsw word es:[edi], word [esi]
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x34]
push 2
push eax
lea eax, [esp + 0x2044]
push 0x81
push eax
call fcn.00437370
mov ecx, dword [esp + 0x38]
add esp, 0x1c
mov edx, dword [sym.imp.WS2_32.dll_htons]
mov eax, dword [esp + 0x10]
add eax, 4
sub ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
jne 0x458e94
push 0xffff
call edx
movups xmm0, xmmword [0x4be198]
push 1
mov word [esp + 0x34], ax
mov eax, dword [0x4be1a8]
push 1
mov dword [esp + 0x4b], eax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x46], 0x14
push 0x17
jmp 0x458585
mov ecx, 0x4be1b0
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x458f80
test dl, dl
je 0x458f7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x458f80
add eax, 2
add ecx, 2
test dl, dl
jne 0x458f60
xor eax, eax
jmp 0x458f85
sbb eax, eax
or eax, 1
test eax, eax
jne 0x459098
movzx eax, word [esi + 0x1a]
cmp dword [ebx + 0x10], eax
jne 0x459098
mov ecx, dword [sym.imp.WS2_32.dll_htons]
lea edi, [esi + 0x38]
mov eax, 6
mov byte [esi + 0x78], 0
mov dword [esp + 0x10], eax
mov esi, dword [edi]
test esi, esi
je 0x459050
cmp esi, ebx
je 0x459050
push 0xffff
call ecx
movups xmm0, xmmword [0x4be1c0]
mov word [esp + 0x30], ax
mov edx, 0x6e
mov ax, word [0x4be210]
mov ecx, esi
movups xmmword [esp + 0x33], xmm0
push 1
movups xmm0, xmmword [0x4be1d0]
mov word [esp + 0x87], ax
movzx eax, word [esi + 0x10]
movups xmmword [esp + 0x47], xmm0
push 1
movups xmm0, xmmword [0x4be1e0]
push eax
movzx eax, word [esi + 0x34]
movups xmmword [esp + 0x5f], xmm0
push 2
movups xmm0, xmmword [0x4be1f0]
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x46], 0x52
movups xmmword [esp + 0x77], xmm0
push 0x55
movups xmm0, xmmword [0x4be200]
push eax
movups xmmword [esp + 0x8f], xmm0
call fcn.00437370
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov ecx, dword [sym.imp.WS2_32.dll_htons]
add edi, 4
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x458fb0
push 0xffff
call ecx
movups xmm0, xmmword [0x4be214]
push 1
mov word [esp + 0x34], ax
mov eax, dword [0x4be224]
push 1
mov dword [esp + 0x4b], eax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x46], 0x14
push 0x17
jmp 0x458585
mov eax, 6
add esi, 0x38
mov dword [esp + 0x10], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4590c9
push edi
push dword [esp + 0x24]
mov edx, ebx
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x2c]
call fcn.004593b0
mov eax, dword [esp + 0x24]
add esp, 0x14
add esi, 4
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x4590a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret