Function at 0x491880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x414]
push 0
push eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 1
push eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x41c], str.client
push eax
push ecx
mov dword [ebp - 0x410], str.client
mov dword [ebp - 0x408], 0
call fcn.0049dd60
add esp, 0x14
cmp dword [ebp - 0x418], 1
je 0x491f7d
mov ecx, dword [ebp - 0x414]
mov eax, dword [ecx + 4]
lea ebx, [ecx + 4]
test eax, eax
je 0x491f83
push edi
nop word [eax + eax]
push eax
call fcn.0049dd40
add esp, 4
test al, al
jne case.0x4919a2.30
mov eax, dword [ebx]
cmp byte [eax], 0x2d
jne case.0x4919a2.30
cmp byte [eax + 1], 0x2d
jne case.0x4919a2.30
push 0x3d
push eax
call fcn.0049f2e0
add esp, 8
xor edi, edi
cmp byte [eax], 0
je 0x49195e
lea edi, [eax + 1]
mov byte [eax], 0
push 0x5f
push dword [ebx]
call fcn.0049f2e0
add esp, 8
cmp byte [eax], 0
je 0x491983
nop
push 0x5f
push eax
mov byte [eax], 0x2d
call fcn.0049f2e0
add esp, 8
cmp byte [eax], 0
jne 0x491970
mov eax, dword [ebx]
push 0
add eax, 2
push 0x7d0520
push eax
call fcn.00499be0
dec eax
add esp, 0xc
cmp eax, 0x25
ja case.0x4919a2.30
jmp dword [eax*4 + 0x491f9c]
test edi, edi
je case.0x4919a2.30
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esi + 0xc], eax
jmp case.0x4919a2.30
test edi, edi
je case.0x4919a2.30
push dword [esi + 0x24]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x24], eax
jmp case.0x4919a2.30
or dword [esi + 0x14], 0x20
mov byte [esi + 0x5d], 1
jmp case.0x4919a2.30
test edi, edi
je case.0x4919a2.30
push dword [esi + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x20], eax
jmp case.0x4919a2.30
mov dword [esi + 0x10], 3
test edi, edi
je case.0x4919a2.30
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esi], eax
jmp case.0x4919a2.30
test edi, edi
je case.0x4919a2.30
push dword [esi + 0x1c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x1c], eax
jmp case.0x4919a2.30
push edi
push esi
call fcn.0048e6f0
add esp, 8
jmp case.0x4919a2.30
test edi, edi
je case.0x4919a2.30
push dword [esi + 0x18]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x18], eax
jmp case.0x4919a2.30
test edi, edi
je case.0x4919a2.30
push dword [esi + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x28], eax
jmp case.0x4919a2.30
test edi, edi
mov eax, str.d:t:o__tmp_client.trace
cmovne eax, edi
push eax
call fcn.004964e0
jmp case.0x4919a2.30
or dword [esi + 0x14], 2
jmp case.0x4919a2.30
push dword [esi + 0x40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x40], eax
jmp case.0x4919a2.30
push dword [esi + 0x44]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x44], eax
jmp case.0x4919a2.30
push dword [esi + 0x48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x48], eax
jmp case.0x4919a2.30
push dword [esi + 0x4c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x4c], eax
jmp case.0x4919a2.30
push dword [esi + 0x50]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x50], eax
jmp case.0x4919a2.30
mov eax, dword [esi + 0x84]
test eax, eax
je 0x491ba6
push dword [eax + 0x5c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x491bbe
push 0x30
push 0x68
push dword [0x87f780]
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x491bd7
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0xc
mov ecx, eax
jmp 0x491bd9
xor ecx, ecx
mov eax, dword [esi + 0x84]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi + 0x84]
cmp dword [eax + 0x5c], 0
je case.0x4919a2.30
mov dword [eax + 0x64], 2
jmp case.0x4919a2.30
mov eax, dword [esi + 0x84]
test eax, eax
je 0x491c15
push dword [eax + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x491c2d
push 0x30
push 0x68
push dword [0x87f780]
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x491c46
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0xc
mov ecx, eax
jmp 0x491c48
xor ecx, ecx
mov eax, dword [esi + 0x84]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x84]
cmp dword [eax + 8], 0
je case.0x4919a2.30
mov dword [eax + 0x64], 2
jmp case.0x4919a2.30
mov eax, dword [esi + 0x84]
test eax, eax
je 0x491c84
push dword [eax + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x491c9c
push 0x30
push 0x68
push dword [0x87f780]
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x491cb5
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0xc
mov ecx, eax
jmp 0x491cb7
xor ecx, ecx
mov eax, dword [esi + 0x84]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x84]
cmp dword [eax + 0xc], 0
je case.0x4919a2.30
mov dword [eax + 0x64], 2
jmp case.0x4919a2.30
push dword [esi + 0x38]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x38], eax
jmp case.0x4919a2.30
push dword [esi + 0x3c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x3c], eax
jmp case.0x4919a2.30
or dword [esi + 0x14], 0x400
jmp case.0x4919a2.30
test edi, edi
je 0x491d48
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x491d48
and dword [esi + 0x14], 0xffffff7f
jmp case.0x4919a2.30
or dword [esi + 0x14], 0x80
jmp case.0x4919a2.30
test edi, edi
je case.0x4919a2.30
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [esi + 0x58], eax
jmp case.0x4919a2.30
push 0
push 0x7d0550
push edi
call fcn.00499be0
add esp, 0xc
mov dword [esi + 0x10], eax
test eax, eax
jne case.0x4919a2.30
push edi
push str.Unknown_option_to_protocol:__s
push eax
call fcn.0049a1a0
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [esi + 0x54]
cmp eax, dword [str.MYSQL]
je 0x491db4
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0xc
mov dword [esi + 0x54], eax
jmp case.0x4919a2.30
or dword [esi + 0x14], 0x20000
jmp case.0x4919a2.30
or dword [esi + 0x14], 0x30000
jmp case.0x4919a2.30
test edi, edi
je 0x491e01
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov byte [esi + 0x6d], al
jmp case.0x4919a2.30
mov eax, 1
mov byte [esi + 0x6d], al
jmp case.0x4919a2.30
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491e13
sub ecx, edx
cmp ecx, 0x200
jb 0x491e2a
mov byte [edi + 0x200], al
push 0
lea eax, [ebp - 0x204]
push edi
push eax
call fcn.00499fd0
add esp, 0xc
test eax, eax
jne case.0x4919a2.30
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0049a380
mov eax, dword [esi + 0x84]
add esp, 0xc
test eax, eax
je 0x491e71
push dword [eax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x491e89
push 0x30
push 0x68
push dword [0x87f780]
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x84], eax
push 0x10
lea eax, [ebp - 0x404]
push eax
push dword [0x87f780]
call fcn.00499ef0
mov ecx, dword [esi + 0x84]
add esp, 0xc
mov dword [ecx], eax
jmp case.0x4919a2.30
mov eax, dword [esi + 0x84]
test eax, eax
je 0x491ec4
push dword [eax + 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x491edc
push 0x30
push 0x68
push dword [0x87f780]
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x491efe
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
mov ecx, eax
add esp, 0xc
mov eax, dword [esi + 0x84]
mov dword [eax + 4], ecx
jmp case.0x4919a2.30
mov eax, dword [esi + 0x84]
xor ecx, ecx
mov dword [eax + 4], ecx
jmp case.0x4919a2.30
push dword [esi + 0x68]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0x10
push edi
push dword [0x87f780]
call fcn.00499ef0
add esp, 0x10
mov dword [esi + 0x68], eax
jmp case.0x4919a2.30
cmp dword [esi + 0x84], 0
jne 0x491f4a
push 0x30
push 0x68
push dword [0x87f780]
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x84], eax
test edi, edi
je 0x491f60
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x491f60
xor ecx, ecx
jmp 0x491f65
mov ecx, 1
mov eax, dword [esi + 0x84]
mov byte [eax + 0x58], cl
mov eax, dword [ebx + 4]
add ebx, 4
test eax, eax
jne 0x491920
pop edi
mov ecx, dword [ebp - 0x414]
push ecx
call fcn.0049daf0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
pop ebx
call fcn.004e7e02
mov esp, ebp
pop ebp
ret