Function at 0x408540
Capabilities:
Terminate process

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, str.client
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
mov esi, 1
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], 0
call fcn.00407510
add esp, 0x14
cmp dword [esp + 0x10], esi
je 0x408919
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
je 0x408919
mov esi, dword [esp + 0x28]
cmp byte [eax], 0x2d
jne case.default.0x408625
cmp byte [eax + 1], 0x2d
jne case.default.0x408625
push 0x3d
push eax
call fcn.004124c0
add esp, 8
xor edi, edi
cmp byte [eax], 0
je 0x4085dd
lea edi, [eax + 1]
mov byte [eax], 0
mov eax, dword [ebp]
push 0x5f
push eax
call fcn.004124c0
add esp, 8
cmp byte [eax], 0
je 0x408603
push 0x5f
push eax
mov byte [eax], 0x2d
call fcn.004124c0
add esp, 8
cmp byte [eax], 0
jne 0x4085f0
mov eax, dword [ebp]
push 2
add eax, 2
push 0x4dd294
push eax
call fcn.00407820
add eax, 0xffffffff
add esp, 0xc
cmp eax, 0x21
ja case.default.0x408625
jmp dword [eax*4 + 0x408930]
test edi, edi
je case.default.0x408625
push edi
call fcn.004648b4
add esp, 4
mov dword [esi + 0xc], eax
jmp case.default.0x408625
test edi, edi
je case.default.0x408625
mov ecx, dword [esi + 0x24]
push ecx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x24], eax
jmp case.default.0x408625
or dword [esi + 0x14], 0x20
mov byte [esi + 0x5d], 1
jmp case.default.0x408625
test edi, edi
je case.default.0x408625
mov edx, dword [esi + 0x20]
push edx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x20], eax
jmp case.default.0x408625
mov dword [esi + 0x10], 3
test edi, edi
je case.default.0x408625
push edi
call fcn.004648b4
add esp, 4
mov dword [esi], eax
jmp case.default.0x408625
test edi, edi
je case.default.0x408625
mov eax, dword [esi + 0x1c]
push eax
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x1c], eax
jmp case.default.0x408625
push edi
call fcn.004084d0
add esp, 4
jmp case.default.0x408625
test edi, edi
je case.default.0x408625
mov ecx, dword [esi + 0x18]
push ecx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x18], eax
jmp case.default.0x408625
test edi, edi
je case.default.0x408625
mov edx, dword [esi + 0x28]
push edx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x28], eax
jmp case.default.0x408625
test edi, edi
jne 0x40873c
mov edi, str.d:t:o__tmp_client.trace
push edi
call fcn.0040bc80
jmp case.default.0x408625
or dword [esi + 0x14], 2
jmp case.default.0x408625
mov eax, dword [esi + 0x40]
push eax
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x40], eax
jmp case.default.0x408625
mov ecx, dword [esi + 0x44]
push ecx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x44], eax
jmp case.default.0x408625
mov edx, dword [esi + 0x48]
push edx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x48], eax
jmp case.default.0x408625
mov eax, dword [esi + 0x4c]
push eax
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x4c], eax
jmp case.default.0x408625
mov ecx, dword [esi + 0x50]
push ecx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x50], eax
jmp case.default.0x408625
mov edx, dword [esi + 0x38]
push edx
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x38], eax
jmp case.default.0x408625
mov eax, dword [esi + 0x3c]
push eax
call fcn.0040b780
push 0x10
push edi
call fcn.0040b7d0
add esp, 0xc
mov dword [esi + 0x3c], eax
jmp case.default.0x408625
or dword [esi + 0x14], 0x400
jmp case.default.0x408625
test edi, edi
je 0x40883d
push edi
call fcn.004648b4
add esp, 4
test eax, eax
jne 0x40883d
and dword [esi + 0x14], 0xffffff7f
jmp case.default.0x408625
or dword [esi + 0x14], 0x80
jmp case.default.0x408625
mov byte [esi + 0x5f], 1
jmp case.default.0x408625
mov byte [esi + 0x61], 0
jmp case.default.0x408625
mov byte [esi + 0x60], 1
jmp case.default.0x408625
test edi, edi
je case.default.0x408625
push edi
call fcn.004648b4
add esp, 4
mov dword [esi + 0x58], eax
jmp case.default.0x408625
push 0
push 0x4dd2a4
push edi
call fcn.00407820
add esp, 0xc
test eax, eax
mov dword [esi + 0x10], eax
ja case.default.0x408625
push edi
push str.Unknown_option_to_protocol:__s_n
call fcn.00463ceb
add eax, 0x40
push eax
call fcn.00463b1e
add esp, 0xc
push 1
call fcn.00463a63
mov eax, dword [esi + 0x54]
cmp eax, dword [str.MYSQL]
je 0x4088c6
push eax
call fcn.0040b780
add esp, 4
push 0x10
push edi
call fcn.0040b7d0
add esp, 8
mov dword [esi + 0x54], eax
jmp case.default.0x408625
or dword [esi + 0x14], 0x20000
jmp case.default.0x408625
or dword [esi + 0x14], 0x30000
jmp case.default.0x408625
mov byte [esi + 0x6c], 1
jmp case.default.0x408625
test edi, edi
je 0x408903
push edi
call fcn.004648b4
add esp, 4
neg eax
sbb eax, eax
neg eax
jmp 0x408908
mov eax, 1
mov byte [esi + 0x6d], al
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x4085b2
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00406560
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x18
ret