Function at 0x40593c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
push edi
mov dword [ebp - 0x1a0], 1
mov dword [ebp - 0x19c], 1
mov ax, word [0x448508]
mov word [ebp - 0x5a0], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x59e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x448510]
mov word [ebp - 0xa20], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xa1e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dl, byte [0x448518]
mov byte [ebp - 0x620], dl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0
mov word [ebp - 0xa24], 0
mov dword [ebp - 4], 0
push 0x190
push 0
lea eax, [ebp - 0x198]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x405bc7
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x405bc7
cmp dword [0x4481f8], 0
je 0x405a11
mov eax, dword [0x4481f8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 0
push 0
push 0x80
lea ecx, [ebp - 0x620]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov word [ebp - 0xa24], 0x101
lea eax, [ebp - 0x198]
push eax
mov cx, word [ebp - 0xa24]
push ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x405a9c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
push 0x200
lea edx, [ebp - 0x5a0]
push edx
push 0x18d
mov eax, dword [0x4492ac]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x5a0]
push edx
lea eax, [ebp - 0xa20]
push eax
mov ecx, dword [0x449ba0]
call dword [ecx + 0x4cc]
add esp, 0xc
jmp 0x405aa6
mov dword [ebp - 0x19c], 1
lea edx, [ebp - 0x620]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405b2e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2af9
jne 0x405aee
push 0x200
lea eax, [ebp - 0xa20]
push eax
push 0x18a
mov ecx, dword [0x4492ac]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
jmp 0x405b2c
push 0x200
lea edx, [ebp - 0x5a0]
push edx
push 0x18d
mov eax, dword [0x4492ac]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x5a0]
push edx
lea eax, [ebp - 0xa20]
push eax
mov ecx, dword [0x449ba0]
call dword [ecx + 0x4cc]
add esp, 0xc
jmp 0x405b78
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x437fb4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x3c4]
mov dword [0x4481f8], eax
cmp dword [0x4481f8], 0
jne 0x405b78
push 0x400
lea ecx, [ebp - 0xa20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
push eax
call fcn.0042f8f7
add esp, 0xc
lea edx, [ebp - 0xa20]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x405bb8
lea eax, [ebp - 0xa20]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
push 2
push 4
push 0xc000013c
push 1
push 3
call fcn.0041b0dc
add esp, 0x20
mov dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x19c], 0
je 0x405bc7
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, dword [ebp - 0x1a0]
pop edi
mov esp, ebp
pop ebp
ret