Function at 0x405920
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xa28], 1
mov dword [ebp - 0x59c], 1
mov ax, word [0x44d84c]
mov word [ebp - 0x598], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x596]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44d854]
mov word [ebp - 0x9a0], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x99e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dl, byte [0x44d857]
mov byte [ebp - 0xa20], dl
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xa30], 0
mov word [ebp - 0xa24], 0
mov dword [ebp - 0xa2c], 0
push 0x190
push 0
lea eax, [ebp - 0x198]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x405bce
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
je 0x405bce
cmp dword [0x44d588], 0
je 0x405a03
mov eax, dword [0x44d588]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push 0
push 0
push 0x80
lea ecx, [ebp - 0xa20]
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 0x405a94
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0xa2c], eax
push 0x200
lea edx, [ebp - 0x598]
push edx
push 0x18d
mov eax, dword [0x44e620]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp - 0xa2c]
push ecx
lea edx, [ebp - 0x598]
push edx
lea eax, [ebp - 0x9a0]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
jmp 0x405a9e
mov dword [ebp - 0x59c], 1
lea edx, [ebp - 0xa20]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
jne 0x405b35
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0xa2c], eax
cmp dword [ebp - 0xa2c], 0x2af9
jne 0x405af2
push 0x200
lea eax, [ebp - 0x9a0]
push eax
push 0x18a
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
jmp 0x405b33
push 0x200
lea edx, [ebp - 0x598]
push edx
push 0x18d
mov eax, dword [0x44e620]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov ecx, dword [ebp - 0xa2c]
push ecx
lea edx, [ebp - 0x598]
push edx
lea eax, [ebp - 0x9a0]
push eax
mov ecx, dword [0x450d4c]
call dword [ecx + 0x4cc]
add esp, 0xc
jmp 0x405b7f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x43df7c
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x3c4]
mov dword [0x44d588], eax
cmp dword [0x44d588], 0
jne 0x405b7f
push 0x400
lea ecx, [ebp - 0x9a0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xffff
push eax
call fcn.00432600
add esp, 0xc
lea edx, [ebp - 0x9a0]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
test eax, eax
je 0x405bbf
lea eax, [ebp - 0x9a0]
push eax
push 2
mov ecx, dword [ebp + 8]
push ecx
push 2
push 4
push 0xc000013c
push 1
push 3
call fcn.0041cf30
add esp, 0x20
mov dword [ebp - 0xa28], 0
cmp dword [ebp - 0x59c], 0
je 0x405bce
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov eax, dword [ebp - 0xa28]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
mov esp, ebp
pop ebp
ret