Function at 0x403790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
mov dword [ebp - 0xc], 0
call dword [sym.imp.Wetools.dll__UsageProf_0]
push 0
call dword [sym.imp.Wetools.dll__EdIbs_4]
mov ecx, 5
call sub.WINXX.dll_Ordinal_114
test eax, eax
jne 0x4037f0
push 0x10
call sub.Weapp.dll_Ordinal_8
push eax
mov ecx, 0x29
call sub.Constr.dll_Ordinal_1
push eax
call sub.Weapp.dll_Ordinal_11
mov edx, eax
xor ecx, ecx
call sub.Wetools.dll_Ordinal_474
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xfffffffb
jmp 0x403a12
mov eax, dword [ebp + 8]
mov dword [0x41518c], eax
push 0xffffffffffffffff
call fcn.00402660
add esp, 4
test eax, eax
jle 0x40380d
mov byte [0x415183], 1
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004023e0
add esp, 4
test eax, eax
je 0x403a08
mov byte [ebp - 0xd], 0
movzx edx, byte [0x415181]
test edx, edx
je 0x403848
mov byte [0x415183], 0
mov byte [0x415180], 1
push 0
call fcn.00402660
add esp, 4
push str.WRPProxyExitEvent
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403893
movzx eax, byte [0x415180]
test eax, eax
je 0x40387b
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x403889
mov byte [0x415183], 0
mov dword [ebp - 0xc], 0xfffffffe
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x415183]
test eax, eax
jne 0x4038c5
movzx ecx, byte [0x415182]
test ecx, ecx
jne 0x4038c5
movzx edx, byte [0x415180]
test edx, edx
jne 0x4038c5
push 0x40
push 0x3e8
push 0
call fcn.00402220
add esp, 0xc
movzx eax, byte [0x415183]
test eax, eax
je 0x403a06
mov ecx, dword [str.WRPProxy]
push ecx
push 0x3e8
mov edx, dword [str.MaxLogFileItems]
push edx
mov eax, dword [str.Defaults]
push eax
call sub.Wetools.dll_Ordinal_7
mov dword [ebp - 4], eax
mov ecx, dword [str.WRPProxy]
push ecx
push 0x3e8
mov edx, dword [str.MaxLogFileItems]
push edx
mov eax, dword [str.Defaults]
push eax
call sub.Wetools.dll_Ordinal_225
lea ecx, [ebp - 0x3b0]
push ecx
call fcn.00402770
add esp, 4
push eax
mov ecx, 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_void___thiscall_LogFile::SetFileName_wchar_t_const__]
mov edx, dword [ebp - 4]
push edx
mov ecx, 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___thiscall_LogFile::SetMaxItems_long_int_]
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x403950
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.WRPProxyExitEvent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x415190], eax
push str.WRPProxyDDEEvent
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x415194], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x415198], eax
lea ecx, [ebp - 0x1a0]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004028c0
test eax, eax
je 0x4039b7
call fcn.004029d0
test eax, eax
je 0x4039b7
call fcn.00403500
jmp 0x4039be
mov dword [ebp - 0xc], 0xffffffff
call fcn.00402b30
call fcn.00402980
mov edx, dword [0x415190]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x415194]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x415198]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x4151b0
call dword [sym.imp.Sysclass.dll_public:_bool___thiscall_LogFile::Close_void_]
mov dword [ebp - 0xc], 1
jmp 0x403a0f
mov dword [ebp - 0xc], 0xffffff9c
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10