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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4014
call fcn.00463070
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x14], ebx
mov al, byte [esi + 0x18]
add esi, 0x19
movzx eax, al
test eax, eax
je 0x41f582
mov ebx, eax
movzx eax, word [esi]
add esi, 2
push eax
call edi
sub ebx, 1
jne 0x41f570
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov cl, byte [esi + 4]
add esi, 5
movzx ecx, cl
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x41f5b6
mov ebx, ecx
movzx eax, word [esi]
push eax
call edi
movzx eax, ax
add esi, eax
sub ebx, 1
jne 0x41f5a2
mov ebx, dword [esp + 0x14]
mov al, byte [esi + 1]
add esi, 2
movzx eax, al
mov dword [esp + 0x10], eax
test eax, eax
je 0x41f5e4
mov ebx, eax
nop dword [eax]
movzx eax, word [esi]
push eax
call edi
movzx eax, ax
add esi, eax
sub ebx, 1
jne 0x41f5d0
mov ebx, dword [esp + 0x14]
mov al, byte [esi]
inc esi
movzx eax, al
mov dword [esp + 0x10], eax
test eax, eax
je 0x41f608
mov ebx, eax
movzx eax, word [esi]
push eax
call edi
movzx eax, ax
add esi, eax
sub ebx, 1
jne 0x41f5f4
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov al, byte [esi + 4]
add esi, 5
test al, al
je 0x41f626
movzx eax, word [esi]
push eax
call edi
movzx eax, ax
add esi, eax
mov al, byte [esi]
inc esi
test al, al
je 0x41f638
movzx eax, word [esi]
push eax
call edi
movzx eax, ax
add esi, eax
mov eax, dword [esi]
add esi, 4
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41f664
mov ebx, eax
nop
movzx ecx, word [esi]
push ecx
call edi
movzx eax, ax
add esi, eax
sub ebx, 1
jne 0x41f650
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
add esi, 4
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x10], eax
test eax, eax
je 0x41f694
mov ebx, eax
nop word [eax + eax]
movzx ecx, word [esi]
push ecx
call edi
movzx eax, ax
add esi, eax
sub ebx, 1
jne 0x41f680
mov ebx, dword [esp + 0x14]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov al, byte [esi + 8]
add esi, 9
test al, al
je 0x41f6bc
movzx eax, word [esi]
push eax
call edi
movzx eax, ax
add esi, eax
mov eax, dword [esi + 1]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call edi
push dword [esi + 5]
call edi
push dword [esi + 9]
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
test edi, edi
jne 0x41fc75
test eax, eax
jne 0x41fc75
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x3c], 1
lea eax, [eax + eax*4]
add eax, eax
mov dword [ebx + 0x44], eax
cmp eax, dword [0x4cda74]
jg 0x41f80a
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x41f72a
cmp ecx, 0xfffd
je 0x41f72a
cmp ecx, 0xfffc
je 0x41f72a
cmp ecx, 0xfffb
jne 0x41f80a
mov edi, dword [ebx + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push 0xffffffffffffffff
push str.UPDATE_User_SET_IsBan____WHERE_Uin__
push dword [0x4d1308]
mov dword [esp + 0x28], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x41f788
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push 0xffffffffffffffff
push 1
push dword [esp + 0x1c]
call esi
add esp, 0xc
lea eax, [edi - 0x2710]
push eax
push 2
push dword [esp + 0x1c]
call esi
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov edx, 0x4b6d50
mov ecx, ebx
call fcn.00434e00
add esp, 4
push 0x4b6dec
push 0x4d0258
call fcn.0040ae50
add esp, 8
push 0x4b6dd4
push ecx
push dword [ebx + 0x18]
mov ecx, eax
call fcn.0040c8c0
add esp, 4
push eax
call fcn.0040ae50
mov esi, eax
add esp, 8
mov eax, 0x10624dd3
imul dword [ebx + 0x44]
push 0x4b6db0
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push ecx
mov ecx, esi
call fcn.00407fb0
add esp, 4
push eax
call fcn.0040ae50
push eax
call fcn.00412d50
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebx + 0x34], 0
je 0x41f99d
cmp dword [ebx + 0x74], 0
jne 0x41f99d
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x18]
push ebx
push eax
call fcn.00412ac0
movzx ecx, word [ebx + 0x34]
add esp, 8
mov byte [esp + 0xf], al
call fcn.00454420
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x41fc75
cmp byte [ecx + 0x76], 0
lea edi, [ecx + 0x38]
mov al, byte [ecx + 0x77]
mov dword [esp + 0x14], edi
jne 0x41f8f4
mov byte [ecx + 0x76], 1
mov byte [ebx + 0x8e], al
inc byte [ecx + 0x77]
mov ecx, 6
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41f8df
mov edi, dword [ebx + 0x44]
mov esi, dword [ebx + 0x18]
push 0x2710
call dword [sym.imp.WS2_32.dll_htonl]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x24], eax
mov al, byte [esp + 0xf]
push edi
mov byte [esp + 0x2c], al
call esi
mov ecx, dword [esp + 0x18]
mov edx, 0x200
push 1
mov dword [esp + 0x2d], eax
push 2
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x36]
push 3
push eax
lea eax, [esp + 0x34]
push 0xd
push eax
call fcn.00437370
mov edi, dword [esp + 0x30]
add esp, 0x1c
mov ecx, dword [esp + 0x10]
add edi, 4
sub ecx, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
jne 0x41f874
jmp 0x41f977
mov byte [ebx + 0x8e], al
inc byte [ecx + 0x77]
mov ecx, 6
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41f96b
push dword [ebx + 0x18]
mov esi, dword [ebx + 0x44]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x2020], eax
mov al, byte [esp + 0xf]
push esi
mov byte [esp + 0x2028], al
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x18]
mov edx, 0x20a
push 1
mov dword [esp + 0x2029], eax
push 2
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x36]
push 3
push eax
lea eax, [esp + 0x2034]
push 9
push eax
call fcn.00437370
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
add edi, 4
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x41f906
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x58], 0
lea ecx, [eax + 0x58]
jne 0x41fc75
push 0
push 0
mov dword [eax + 0x5c], 0x41e160
push 0x2710
jmp 0x41fc62
cmp dword [ebx + 0x88], 0
je 0x41f9b3
cmp dword [ebx + 0x74], 0xfffd
je 0x41faeb
mov ecx, dword [ebx + 0x74]
cmp ecx, 0xfffc
je 0x41faeb
cmp ecx, 0xfffb
je 0x41faeb
cmp ecx, 0x6a5
jne 0x41f9f2
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x41fc75
movzx eax, word [ebx + 0x10]
mov edx, 0x214
push 1
push 2
push eax
movzx eax, word [ebx + 0x36]
mov ecx, ebx
push 3
push eax
push 2
push 0x4b6e04
call fcn.00437370
mov esi, dword [sym.imp.WS2_32.dll_htonl]
add esp, 0x1c
push dword [ebx + 0x18]
call esi
mov dword [0x4d1570], eax
push dword [ebx + 0x74]
call esi
push 0
mov dword [0x4d1576], eax
mov byte [0x4d157a], 0
call esi
mov dword [0x4d158d], eax
push dword [ebx + 0x130]
call esi
push 0
mov dword [0x4d1591], eax
call esi
mov dword [0x4d1595], eax
push dword [ebx + 0x128]
call esi
push 0
mov dword [0x4d1599], eax
call esi
mov dword [0x4d159d], eax
push dword [ebx + 0x124]
call esi
push 1
push 2
mov dword [0x4d15a1], eax
mov edx, 0x215
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push eax
movzx eax, word [ebx + 0x36]
push 3
push eax
push 0x7f
push 0x4d1570
call fcn.00437370
movzx eax, word [ebx + 0x10]
add esp, 0x1c
mov edx, 0x216
mov ecx, ebx
push 1
push 2
push eax
movzx eax, word [ebx + 0x36]
push 3
push eax
push 2
push 0x4b6e04
call fcn.00437370
add esp, 0x1c
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x18]
push ebx
push eax
call fcn.00412ac0
mov ecx, dword [ebx + 0x88]
add esp, 8
mov byte [esp + 0xf], al
call fcn.004542a0
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x41fc75
cmp byte [ecx + 0x76], 0
lea edi, [ecx + 0x38]
mov al, byte [ecx + 0x77]
mov dword [esp + 0x10], edi
jne 0x41fbc2
mov byte [ecx + 0x76], 1
mov byte [ebx + 0x8e], al
inc byte [ecx + 0x77]
mov ecx, 6
mov dword [esp + 0x14], ecx
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41fbad
mov edi, dword [ebx + 0x44]
mov esi, dword [ebx + 0x18]
push 0x2710
call dword [sym.imp.WS2_32.dll_htonl]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x24], eax
mov al, byte [esp + 0xf]
push edi
mov byte [esp + 0x2c], al
call esi
mov ecx, dword [esp + 0x1c]
mov edx, 0x200
push 1
mov dword [esp + 0x2d], eax
push 2
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x36]
push 3
push eax
lea eax, [esp + 0x34]
push 0xd
push eax
call fcn.00437370
mov edi, dword [esp + 0x2c]
add esp, 0x1c
mov ecx, dword [esp + 0x14]
add edi, 4
sub ecx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
jne 0x41fb42
jmp 0x41fc45
mov byte [ebx + 0x8e], al
inc byte [ecx + 0x77]
mov ecx, 6
mov dword [esp + 0x10], ecx
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41fc39
push dword [ebx + 0x18]
mov esi, dword [ebx + 0x44]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x2020], eax
mov al, byte [esp + 0xf]
push esi
mov byte [esp + 0x2028], al
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esp + 0x1c]
mov edx, 0x20a
push 1
mov dword [esp + 0x2029], eax
push 2
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x36]
push 3
push eax
lea eax, [esp + 0x2034]
push 9
push eax
call fcn.00437370
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
add edi, 4
sub ecx, 1
mov dword [esp + 0x10], ecx
jne 0x41fbd4
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x58], 0
lea ecx, [eax + 0x58]
jne 0x41fc75
push 0
push 0
mov dword [eax + 0x5c], 0x41ec70
push 0x2af8
push eax
push 0x454610
push dword [0x4d2d54]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret