Function at 0x4e859e
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push str.RFDBGLOG
mov ebx, edx
mov dword [esp + 0x10], eax
mov edi, ecx
call fcn.0052d906
pop ecx
test eax, eax
je 0x4e85df
mov dword [0x6054c8], 1
mov esi, dword [0x6054c4]
test esi, esi
jne 0x4e8621
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4e8612
push str.WSAStartup_error_n
push 2
call fcn.005207b3
pop ecx
push eax
call fcn.0041c442
pop ecx
pop ecx
call fcn.004e81fa
mov esi, eax
mov dword [0x6054c4], esi
jmp 0x4e862a
cmp byte [0x608afd], 1
jne 0x4e8633
mov byte [0x608afd], 2
jmp 0x4e863a
call fcn.004e81fa
mov esi, eax
push ebx
push str.conf__s__n
call fcn.004e9b1c
pop ecx
pop ecx
test ebx, ebx
je 0x4e89a7
push str.ini_file
push edi
call fcn.005205d0
pop ecx
pop ecx
test eax, eax
jne 0x4e8678
mov ecx, ebx
call fcn.00505858
mov edi, eax
test edi, edi
jne 0x4e86a5
push ebx
push str.conf_load___s__failed_n
jmp 0x4e89a0
push str.ini_str
push edi
call fcn.005205d0
pop ecx
pop ecx
test eax, eax
jne 0x4e899a
mov ecx, ebx
call fcn.005058c6
mov edi, eax
test edi, edi
jne 0x4e86a5
push ebx
push str.conf_load_str___s__failed_n
jmp 0x4e89a0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4e86c8
push ecx
push 0x59318c
mov edx, 0x100
lea ecx, [esp + 0x1a8]
call fcn.004ea31a
pop ecx
pop ecx
jmp 0x4e86e3
push eax
push str.log__s
lea eax, [esp + 0x1a8]
push 0x100
push eax
call fcn.004ea423
add esp, 0x10
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.debug
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.debug_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e872d
push 0x5a9080
push ebx
call fcn.005205d0
pop ecx
pop ecx
test eax, eax
jne 0x4e872d
mov dword [0x6054c8], 1
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.level
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.level_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e876b
push 0xffffffffffffffff
push ebx
push 3
pop edx
mov ecx, esi
call fcn.004e8290
pop ecx
pop ecx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.flags
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.flags_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e87a9
push 0xffffffffffffffff
push ebx
push 4
pop edx
mov ecx, esi
call fcn.004e8290
pop ecx
pop ecx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.syslog
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.syslog_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e87f6
push 0xffffffffffffffff
push ebx
push 0x18
pop edx
mov ecx, esi
call fcn.004e8290
push 0
push 1
push 0x2b
pop edx
mov ecx, esi
call fcn.004e8290
add esp, 0x10
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.file_dir
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.file_dir_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e8834
push 0xffffffffffffffff
push ebx
push 0x15
pop edx
mov ecx, esi
call fcn.004e8290
pop ecx
pop ecx
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
mov ebx, 0x55f293
push ebx
push str.file_mode
push ecx
push dword [edi]
call dword [eax + 0x14]
add esp, 0x10
cmp byte [eax], 0
je 0x4e8864
lea ecx, [esi + 0x428]
mov edx, eax
call fcn.004e9491
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push ebx
push str.file
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.file_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e88ad
push 0xffffffffffffffff
push ebx
push 0x14
pop edx
mov ecx, esi
call fcn.004e8290
push 0
push 1
push 0x2a
pop edx
mov ecx, esi
call fcn.004e8290
add esp, 0x10
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.file_size
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.file_size_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e8932
mov ecx, ebx
call fcn.004f5316
mov ebx, eax
mov eax, 0x800
cmp ebx, eax
jl 0x4e890b
push ebx
push str.log2_ioctl_log.file_size_d_n
call fcn.004e9b1c
push 0xffffffffffffffff
push ebx
push 0x16
pop edx
mov ecx, esi
call fcn.004e8290
add esp, 0x10
jmp 0x4e8932
push eax
push ebx
push str.log2_ioctl_log.file_size_d__must__d_error__n
push str.log2_init_imp
push 0x12d
push str.srclibliblogliblog.c
push 0x55ed0c
push 4
push 0
call fcn.004e8a0a
add esp, 0x24
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1a0]
push 0x55f293
push str.dbgview
push ecx
push dword [edi]
call dword [eax + 0x14]
mov ebx, eax
push ebx
push str.log.dbgview_s_n
call fcn.004e9b1c
add esp, 0x18
cmp byte [ebx], 0
je 0x4e8991
push 0x5a9080
push ebx
call fcn.005205d0
pop ecx
pop ecx
test eax, eax
jne 0x4e8991
test esi, esi
je 0x4e897a
mov eax, esi
jmp 0x4e898d
mov eax, dword [0x6054c4]
test eax, eax
jne 0x4e898d
call fcn.004e81fa
mov dword [0x6054c4], eax
mov byte [eax + 9], 1
mov ecx, edi
call fcn.00505924
jmp 0x4e89a7
push edi
push str.type___s__error_n
call fcn.004e9b1c
pop ecx
pop ecx
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051b034
mov esp, ebp
pop ebp
ret