Function at 0x405520
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 [0x44aa44]
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 [0x44aa4c]
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 [0x44aa54]
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 0x4057ab
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x4057ab
cmp dword [0x44a77c], 0
je 0x4055f5
mov eax, dword [0x44a77c]
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 0x405680
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 [0x44b81c]
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 [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0xc
jmp 0x40568a
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 0x405712
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2af9
jne 0x4056d2
push 0x200
lea eax, [ebp - 0xa20]
push eax
push 0x18a
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
jmp 0x405710
push 0x200
lea edx, [ebp - 0x5a0]
push edx
push 0x18d
mov eax, dword [0x44b81c]
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 [0x44df4c]
call dword [ecx + 0x4cc]
add esp, 0xc
jmp 0x40575c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x43af68
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x3c4]
mov dword [0x44a77c], eax
cmp dword [0x44a77c], 0
jne 0x40575c
push 0x400
lea ecx, [ebp - 0xa20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
push eax
call fcn.0043002e
add esp, 0xc
lea edx, [ebp - 0xa20]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x40579c
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.0041b7ad
add esp, 0x20
mov dword [ebp - 0x1a0], 0
cmp dword [ebp - 0x19c], 0
je 0x4057ab
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, dword [ebp - 0x1a0]
pop edi
mov esp, ebp
pop ebp
ret