Function at 0x404f00
Capabilities:
Terminate process

Disassembly:
sub esp, 0x41c
mov eax, dword [0x7079d0]
xor eax, esp
mov dword [esp + 0x418], eax
mov ecx, dword [esp + 0x428]
mov eax, dword [esp + 0x424]
push ebp
push esi
mov esi, dword [esp + 0x428]
push edi
lea edx, [esp + 0x14]
mov dword [esp + 0xc], edx
mov edx, str.client
mov dword [esp + 0x1c], ecx
push 0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
mov edi, 1
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], 0
call fcn.0040c160
add esp, 0x14
cmp dword [esp + 0x10], edi
je 0x40546d
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
je 0x40546d
lea esp, [esp]
push eax
call fcn.0040af90
add esp, 4
test al, al
jne case.default.0x405015
mov eax, dword [ebp]
cmp byte [eax], 0x2d
jne case.default.0x405015
cmp byte [eax + 1], 0x2d
jne case.default.0x405015
push 0x3d
push eax
call fcn.0041af50
add esp, 8
xor edi, edi
cmp byte [eax], 0
je 0x404fcf
lea edi, [eax + 1]
mov byte [eax], 0
mov eax, dword [ebp]
push 0x5f
push eax
call fcn.0041af50
add esp, 8
cmp byte [eax], 0
je 0x404ff5
push 0x5f
push eax
mov byte [eax], 0x2d
call fcn.0041af50
add esp, 8
cmp byte [eax], 0
jne 0x404fe2
mov edx, dword [ebp]
push 0
add edx, 2
push 0x49a1c0
push edx
call fcn.0040c8c0
dec eax
add esp, 0xc
cmp eax, 0x22
ja case.default.0x405015
jmp dword [eax*4 + 0x4054b4]
test edi, edi
je case.default.0x405015
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esi + 0xc], eax
jmp case.default.0x405015
test edi, edi
je case.default.0x405015
mov eax, dword [esi + 0x24]
push eax
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x24], eax
jmp case.default.0x405015
or dword [esi + 0x14], 0x20
mov byte [esi + 0x5d], 1
jmp case.default.0x405015
test edi, edi
je case.default.0x405015
mov ecx, dword [esi + 0x20]
push ecx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x20], eax
jmp case.default.0x405015
mov dword [esi + 0x10], 3
test edi, edi
je case.default.0x405015
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esi], eax
jmp case.default.0x405015
test edi, edi
je case.default.0x405015
mov edx, dword [esi + 0x1c]
push edx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x1c], eax
jmp case.default.0x405015
push edi
call fcn.00404e50
add esp, 4
jmp case.default.0x405015
test edi, edi
je case.default.0x405015
mov eax, dword [esi + 0x18]
push eax
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x18], eax
jmp case.default.0x405015
test edi, edi
je case.default.0x405015
mov ecx, dword [esi + 0x28]
push ecx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x28], eax
jmp case.default.0x405015
test edi, edi
jne 0x40512e
mov edi, str.d:t:o__tmp_client.trace
push edi
call fcn.0040d200
jmp case.default.0x405015
or dword [esi + 0x14], 2
jmp case.default.0x405015
mov edx, dword [esi + 0x40]
push edx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x40], eax
jmp case.default.0x405015
mov eax, dword [esi + 0x44]
push eax
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x44], eax
jmp case.default.0x405015
mov ecx, dword [esi + 0x48]
push ecx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x48], eax
jmp case.default.0x405015
mov edx, dword [esi + 0x4c]
push edx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x4c], eax
jmp case.default.0x405015
mov eax, dword [esi + 0x50]
push eax
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x50], eax
jmp case.default.0x405015
test edi, edi
je 0x405492
mov ecx, dword [0x49b328]
mov edx, dword [ecx + 0x1c]
push str.required
push edi
push 0x49b2c0
call edx
add esp, 0xc
test eax, eax
jne 0x405492
cmp dword [esi + 0x84], eax
jne 0x405211
push 0x30
push 0x10
call fcn.0040ce60
add esp, 8
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x84]
mov dword [eax + 0xc], 3
jmp case.default.0x405015
mov ecx, dword [esi + 0x38]
push ecx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x38], eax
jmp case.default.0x405015
mov edx, dword [esi + 0x3c]
push edx
call sub.MSVCR90.dll_free
push 0x10
push edi
call fcn.0040cf30
add esp, 0xc
mov dword [esi + 0x3c], eax
jmp case.default.0x405015
or dword [esi + 0x14], 0x400
jmp case.default.0x405015
test edi, edi
je 0x405285
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
test eax, eax
jne 0x405285
and dword [esi + 0x14], 0xffffff7f
jmp case.default.0x405015
or dword [esi + 0x14], 0x80
jmp case.default.0x405015
test edi, edi
je case.default.0x405015
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esi + 0x58], eax
jmp case.default.0x405015
push 0
push 0x49a1d0
push edi
call fcn.0040c8c0
add esp, 0xc
mov dword [esi + 0x10], eax
test eax, eax
ja case.default.0x405015
push edi
push str.Unknown_option_to_protocol:__s_n
jmp 0x405498
mov eax, dword [esi + 0x54]
cmp eax, dword [str.MYSQL]
je 0x4052e5
push eax
call sub.MSVCR90.dll_free
add esp, 4
push 0x10
push edi
call fcn.0040cf30
add esp, 8
mov dword [esi + 0x54], eax
jmp case.default.0x405015
or dword [esi + 0x14], 0x20000
jmp case.default.0x405015
or dword [esi + 0x14], 0x30000
jmp case.default.0x405015
mov byte [esi + 0x6c], 1
jmp case.default.0x405015
test edi, edi
je 0x405335
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov byte [esi + 0x6d], al
jmp case.default.0x405015
mov eax, 1
mov byte [esi + 0x6d], al
jmp case.default.0x405015
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405347
sub eax, edx
cmp eax, 0x200
jb 0x40535d
mov byte [edi + 0x200], cl
push 0
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0041ae80
add esp, 0xc
test eax, eax
jne case.default.0x405015
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x22c]
push edx
call fcn.00417df0
mov eax, dword [esi + 0x84]
add esp, 0xc
test eax, eax
je 0x4053a2
mov eax, dword [eax]
push eax
call sub.MSVCR90.dll_free
add esp, 4
jmp 0x4053b4
push 0x30
push 0x10
call fcn.0040ce60
add esp, 8
mov dword [esi + 0x84], eax
lea ecx, [esp + 0x224]
push 0x10
push ecx
call fcn.0040cf30
mov edx, dword [esi + 0x84]
add esp, 8
mov dword [edx], eax
jmp case.default.0x405015
mov eax, dword [esi + 0x84]
test eax, eax
je 0x4053eb
mov eax, dword [eax + 4]
push eax
call sub.MSVCR90.dll_free
add esp, 4
jmp 0x4053fd
push 0x30
push 0x10
call fcn.0040ce60
add esp, 8
mov dword [esi + 0x84], eax
test edi, edi
je 0x405417
push 0x10
push edi
call fcn.0040cf30
mov ecx, dword [esi + 0x84]
add esp, 8
mov dword [ecx + 4], eax
jmp case.default.0x405015
mov ecx, dword [esi + 0x84]
xor eax, eax
mov dword [ecx + 4], eax
jmp case.default.0x405015
cmp dword [esi + 0x84], 0
jne 0x40543f
push 0x30
push 0x10
call fcn.0040ce60
add esp, 8
mov dword [esi + 0x84], eax
test edi, edi
je 0x405451
push edi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
test eax, eax
je 0x405456
mov eax, 1
mov edx, dword [esi + 0x84]
mov byte [edx + 8], al
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x404f90
mov eax, dword [esp + 0xc]
push eax
call fcn.0040b170
mov ecx, dword [esp + 0x428]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00466e0a
add esp, 0x41c
ret
push edi
push str.Unknown_option_to_ssl_mode:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
nop
sbb al, 0x50
inc eax
add byte [esi], dh
push eax
inc eax
add byte [edx + 0x50], bl
inc eax
add byte [edi + 0x50], ah
inc eax
add byte [ebx - 0x6dffbfb0], cl
push eax
inc eax
add byte [ebx - 0x30ffbfb0], ch
push eax
inc eax
add ch, bl
push eax
inc eax
add byte [ecx], al
push ecx
inc eax
add byte [0x39004051], ah
push ecx
inc eax
add byte [edx + 0x51], al
inc eax
add byte [esi + 0x51], bl
inc eax
add byte [edx + 0x51], bh
inc eax
add byte [esi + 0x23004051], dl
push edx
inc eax
add byte [edi], bh
push edx
inc eax
add byte [ebx + 0x52], bl
inc eax
add byte [edx + 0x67004050], dl
push edx
inc eax
add byte [ecx + 0x52], bh
inc eax
add byte [edx - 0x6effbfaf], dh
push edx
inc eax
add byte [ebx - 0x2effbfae], ch
push edx
inc eax
add al, bh
push edx
inc eax
add byte [ebx + edx*2], al
inc eax
add byte [ebx + edx*2], al
inc eax
add byte [eax], dl
push ebx
inc eax
add byte [ecx], bl
push ebx
inc eax
add byte [edx + 0x53], al
inc eax
add bl, dl
push ebx
inc eax
add byte [esp + edx*2], ah
inc eax
add dh, cl
push ecx
inc eax
add byte [ebx - 0x74f7dbb4], cl
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]