Function at 0x449250
Capabilities:
Check mutex on windows
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4826e5
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x4a7ea0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x64c], edi
cmp byte [0x4ab080], 0
jne 0x4492dc
mov eax, dword [edi + 0x110]
mov eax, dword [eax + 0x72]
test eax, eax
je 0x4492a2
movsx eax, word [eax + 8]
jmp 0x4492a7
mov eax, 6
push eax
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [edi + 0x114], eax
cmp eax, 0xffffffff
jne 0x4498c1
push 0x12030
push str.Winsock_Error
push str.Unable_to_create_socket.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4498f1
lea ecx, [ebp - 0x500]
call fcn.004203d0
push 0x4ab080
lea eax, [ebp - 0x3f8]
mov dword [ebp - 4], 0
push 0x4881d0
push eax
call fcn.00452c8a
add esp, 0xc
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 1
push eax
call fcn.004205b0
add esp, 4
mov byte [ebp - 4], 0
test eax, eax
lea ecx, [ebp - 0x4ac]
sete bl
call fcn.00425a30
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
test bl, bl
je 0x4493bd
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x500]
call fcn.00420560
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x44944f
push 4
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 2
push eax
lea ecx, [ebp - 0x500]
call fcn.00420a10
lea ecx, [ebp - 0x500]
call fcn.00420450
mov dword [edi + 0x114], 1
jmp 0x44944f
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x500]
call fcn.00420730
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x44944f
push 4
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x500]
call fcn.00420890
mov eax, dword [ebp - 0x648]
mov dword [edi + 0x114], eax
push 0
push 0
lea ecx, [eax + 1]
mov eax, 1
cmp ecx, 0x7530
push 0
cmovg ecx, eax
mov dword [ebp - 0x644], ecx
lea ecx, [ebp - 0x500]
call fcn.00420900
push 4
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x500]
call fcn.00420a10
lea ecx, [ebp - 0x500]
call fcn.00420450
cmp dword [edi + 0x114], 0xffffffff
jne 0x44946c
push 0x12030
push str.Local_Socket_Error
push str.Unable_to_get_next_socket_number.
jmp 0x4498d7
push 0x4ab080
lea eax, [ebp - 0x3f8]
push str._s.sok
push eax
call fcn.00452c8a
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x3f8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x644], eax
cmp eax, 0xffffffff
je 0x44973c
mov edi, eax
lea ebx, [ebx]
lea eax, [ebp - 0x614]
push eax
push 0x4ab080
lea eax, [ebp - 0x3f8]
push str._s_s
push eax
call fcn.00452c8a
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 4
push eax
call fcn.00420580
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00425a30
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 5
push eax
call fcn.004205b0
add esp, 4
mov byte [ebp - 4], 0
test eax, eax
lea ecx, [ebp - 0x4ac]
sete bl
call fcn.00425a30
test bl, bl
je 0x449719
xor eax, eax
cmp byte [ebp - 0x614], al
je 0x44956f
nop
cmp byte [ebp + eax - 0x614], 0x2e
je 0x449567
inc eax
cmp byte [ebp + eax - 0x614], 0
jne 0x449550
jmp 0x44956f
mov byte [ebp + eax - 0x614], 0
lea eax, [ebp - 0x614]
push eax
push 0x4ab080
lea eax, [ebp - 0x3f8]
push str._s_s.buf
push eax
call fcn.00452c8a
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 6
push eax
call fcn.004205b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x4495fd
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 7
push eax
call fcn.00420580
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00425a30
lea eax, [ebp - 0x614]
push eax
push 0x4ab080
lea eax, [ebp - 0x3f8]
push str._s_s.cnr
push eax
call fcn.00452c8a
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 8
push eax
call fcn.004205b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x44968b
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 9
push eax
call fcn.00420580
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00425a30
lea eax, [ebp - 0x614]
push eax
push 0x4ab080
lea eax, [ebp - 0x3f8]
push str._s_s.cng
push eax
call fcn.00452c8a
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xa
push eax
call fcn.004205b0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x449719
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xb
push eax
call fcn.00420580
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00425a30
lea eax, [ebp - 0x640]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4494b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x64c]
push dword [edi + 0x114]
lea eax, [ebp - 0x3f8]
push 0x4ab080
push str._s_d.sok
push eax
call fcn.00452c8a
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [edi + 0xb]
call fcn.00420560
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x4498c8
push dword [edi + 0x114]
lea eax, [ebp - 0x45c]
push str._d.sok
push eax
call fcn.00452c8a
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.00426fe0
add esp, 0x14
lea eax, [ebp - 0x3f8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xffffffffffffffff
push eax
mov dword [edi + 0x108], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x114]
lea eax, [ebp - 0x3f8]
push 0x4ab080
push str._s_d.buf
push eax
call fcn.00452c8a
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425970
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [edi + 0x5e]
call fcn.00420560
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00425a30
test esi, esi
je 0x449847
lea ecx, [edi + 0x5e]
call fcn.00420450
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425970
push 0x10000080
push 3
push 3
push 0xc0000000
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [edi + 0x5e]
call fcn.00420650
test eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
sete bl
call fcn.00425a30
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x4498af
push 0x12030
push str.Local_Socket_Error
push str.Unable_to_create_socket_buffer.
jmp 0x4498d7
lea ecx, [ebp - 0x500]
mov dword [ebp - 4], 0xffffffff
call fcn.004203f0
mov eax, 1
jmp 0x4498f3
push 0x12030
push str.Local_Socket_Error
push str.Unable_to_create_socket.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x500]
mov dword [ebp - 4], 0xffffffff
call fcn.004203f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004520a4
mov esp, ebp
pop ebp
ret