Function at 0x4079dc
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
jmp 0x4b6bd0
sub esp, 0x194
mov eax, dword [0x93e25c]
push esi
mov esi, dword [esp + 0x1a0]
mov dword [esp + 0x194], eax
mov eax, dword [esi]
mov dword [0x976bd8], eax
call fcn.005dbfa0
lea ecx, [esp + 4]
push ecx
push 0x101
mov dword [0x974a64], 2
call sub.WSOCK32.dll_WSAStartup
cmp eax, 0xffffffff
jne 0x4b6c2f
push 0
push str.WSAStartup_Failed
push 0x567
call fcn.005db9a0
add esp, 0xc
push 1
call fcn.004084f4
mov edx, dword [esp + 0x19c]
push 0x81f954
push esi
push edx
push 0x73a4c0
call fcn.004b6290
add esp, 0x10
test eax, eax
je 0x4b6c55
push 1
call fcn.004084f4
call fcn.004b6090
mov al, byte [0x974b00]
test al, al
js 0x4b6c72
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x974564]
push ebx
push eax
push 0x974330
call fcn.005e25a0
xor ebx, ebx
push ebx
call fcn.005e93e0
call fcn.005e0030
mov ecx, dword [eax + 0x50]
mov esi, 1
mov dword [0x974b20], ecx
mov dword [0x9749e8], esi
call fcn.004b10a0
push 0x10
push 0x974718
call fcn.005e9bc0
add esp, 0x14
test eax, eax
je 0x4b6cc2
push esi
call fcn.004084f4
cmp dword [0x974598], ebx
mov dword [0x81f924], 0x974b18
mov byte [0x974b18], 0x2e
mov byte [0x974b19], bl
mov dword [0x9741c0], ebx
je 0x4b6d03
cmp dword [0x9749b0], ebx
jne 0x4b6d03
mov ecx, dword [0x97430c]
xor edx, edx
cmp ecx, ebx
setne dl
inc edx
mov dword [0x9749b0], edx
call fcn.004b2b30
test eax, eax
je 0x4b6d12
push esi
call fcn.006cf0c8
call fcn.004b2530
cmp byte [0x974b92], bl
jne 0x4b6d52
push 0x93e3e8
push 0x75c074
push 0x973958
call fcn.006d16c5
push 0x93e408
push 0x75c074
push 0x973958
call fcn.006d16c5
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x4b6d5d
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [0x973f14], bl
mov dword [0x849a54], 0x4b0e00
mov dword [0x849a58], 0x4b0e20
mov dword [fcn.005e5540], 0x4b0cd0
jne 0x4b6d88
call fcn.004b1d30
call fcn.004045de
test al, al
jne 0x4b6f4e
movsx eax, byte [0x974a31]
push eax
call fcn.00402c52
add esp, 4
test al, al
jne 0x4b6f4e
mov edx, dword [0x97461c]
xor ecx, ecx
mov cl, byte [0x973f14]
push ecx
push edx
push ebx
call fcn.00402dbf
add esp, 0xc
test al, al
jne 0x4b6f4e
cmp byte [0x974a31], bl
jne 0x4b6de8
call fcn.004071d0
cmp byte [0x974a31], bl
jne 0x4b6de8
call fcn.00407e14
cmp byte [0x973f14], bl
je 0x4b6df7
mov byte [0x974ba8], 1
call fcn.00405e7f
test eax, eax
je 0x4b6e17
cmp dword [0x975be4], ebx
jne 0x4b6e17
push esi
call fcn.005dbc40
add esp, 4
push esi
call fcn.004084f4
cmp byte [0x973f14], bl
je 0x4b6e4b
push 0x93e3c8
mov dword [0x9749e8], ebx
call fcn.004b1470
push esi
call fcn.005dbc40
mov edx, dword [0x974a2c]
xor eax, eax
add esp, 8
cmp edx, ebx
setne al
push eax
call fcn.004084f4
mov eax, dword [0x9745c4]
cmp eax, ebx
je 0x4b6e6c
call fcn.004b15b0
test eax, eax
je 0x4b6e6c
push esi
call fcn.005dbc40
add esp, 4
push esi
call fcn.004084f4
call fcn.004b6970
call fcn.004b1130
cmp dword [0x974340], 0xffffffff
mov eax, 0x73a01c
je 0x4b6e89
mov eax, dword [0x9741b4]
mov ecx, dword [0x973bbc]
mov edx, dword [0x976bd8]
push str.MySQL_Community_Edition__GPL_
push ecx
push eax
mov eax, dword [0x974690]
mov ecx, dword [eax + 0x660]
push 0x973f20
push edx
push ecx
call fcn.00406df7
add esp, 0x18
call fcn.004b69f0
push 0x974678
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x9741c4], ebx
jne 0x4b6eeb
mov edi, edi
push 0x974678
push 0x97496c
call fcn.005e2640
mov eax, dword [0x9741c4]
add esp, 8
cmp eax, ebx
je 0x4b6ed0
push 0x974678
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x974c40], ebx
je 0x4b6f12
cmp dword [0x974c10], ebx
je 0x4b6f12
mov ecx, 0x974c40
call fcn.00402f81
jmp 0x4b6f28
mov eax, dword [0x974618]
cmp eax, ebx
mov dword [0x974d0c], ebx
je 0x4b6f28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004b0940
call fcn.004b0980
mov edx, dword [0x974a28]
neg edx
sbb edx, edx
and edx, 3
push edx
call fcn.005dbcd0
add esp, 4
push ebx
call fcn.006cf0c8
mov dword [0x974918], esi
push ebx
mov dword [0x9749e8], ebx
call fcn.005e93e0
mov al, byte [0x973f14]
add esp, 4
cmp al, bl
jne 0x4b6f7b
push 0x10
push 0x9736f8
call fcn.005e8350
add esp, 8
cmp dword [0x974340], 0xffffffff
je 0x4b6f92
mov eax, dword [0x9741b4]
push eax
call fcn.006e3f21
add esp, 4
push esi
call fcn.006cf0c8
int3