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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483785
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x4a9d30]
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 [0x4acf20], 0
jne 0x4493fc
mov eax, dword [edi + 0x110]
mov eax, dword [eax + 0x72]
test eax, eax
je 0x4493c2
movsx eax, word [eax + 8]
jmp 0x4493c7
mov eax, 6
push eax
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [edi + 0x114], eax
cmp eax, 0xffffffff
jne 0x4499e1
push 0x12030
push str.Winsock_Error
push str.Unable_to_create_socket.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x449a11
lea ecx, [ebp - 0x500]
call fcn.004204c0
push 0x4acf20
lea eax, [ebp - 0x3f8]
mov dword [ebp - 4], 0
push 0x4891d0
push eax
call fcn.00453cca
add esp, 0xc
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 1
push eax
call fcn.004206a0
add esp, 4
mov byte [ebp - 4], 0
test eax, eax
lea ecx, [ebp - 0x4ac]
sete bl
call fcn.004257d0
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
test bl, bl
je 0x4494dd
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x500]
call fcn.00420650
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x44956f
push 4
lea eax, [ebp - 0x648]
mov dword [ebp - 0x648], 2
push eax
lea ecx, [ebp - 0x500]
call fcn.00420b00
lea ecx, [ebp - 0x500]
call fcn.00420540
mov dword [edi + 0x114], 1
jmp 0x44956f
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x500]
call fcn.00420820
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x44956f
push 4
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x500]
call fcn.00420980
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.004209f0
push 4
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x500]
call fcn.00420b00
lea ecx, [ebp - 0x500]
call fcn.00420540
cmp dword [edi + 0x114], 0xffffffff
jne 0x44958c
push 0x12030
push str.Local_Socket_Error
push str.Unable_to_get_next_socket_number.
jmp 0x4499f7
push 0x4acf20
lea eax, [ebp - 0x3f8]
push str._s.sok
push eax
call fcn.00453cca
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 0x44985c
mov edi, eax
lea ebx, [ebx]
lea eax, [ebp - 0x614]
push eax
push 0x4acf20
lea eax, [ebp - 0x3f8]
push str._s_s
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 4
push eax
call fcn.00420670
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004257d0
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 5
push eax
call fcn.004206a0
add esp, 4
mov byte [ebp - 4], 0
test eax, eax
lea ecx, [ebp - 0x4ac]
sete bl
call fcn.004257d0
test bl, bl
je 0x449839
xor eax, eax
cmp byte [ebp - 0x614], al
je 0x44968f
nop
cmp byte [ebp + eax - 0x614], 0x2e
je 0x449687
inc eax
cmp byte [ebp + eax - 0x614], 0
jne 0x449670
jmp 0x44968f
mov byte [ebp + eax - 0x614], 0
lea eax, [ebp - 0x614]
push eax
push 0x4acf20
lea eax, [ebp - 0x3f8]
push str._s_s.buf
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 6
push eax
call fcn.004206a0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x44971d
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 7
push eax
call fcn.00420670
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004257d0
lea eax, [ebp - 0x614]
push eax
push 0x4acf20
lea eax, [ebp - 0x3f8]
push str._s_s.cnr
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 8
push eax
call fcn.004206a0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x4497ab
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 9
push eax
call fcn.00420670
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004257d0
lea eax, [ebp - 0x614]
push eax
push 0x4acf20
lea eax, [ebp - 0x3f8]
push str._s_s.cng
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xa
push eax
call fcn.004206a0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x449839
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xb
push eax
call fcn.00420670
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004257d0
lea eax, [ebp - 0x640]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4495d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x64c]
push dword [edi + 0x114]
lea eax, [ebp - 0x3f8]
push 0x4acf20
push str._s_d.sok
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [edi + 0xb]
call fcn.00420650
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x4499e8
push dword [edi + 0x114]
lea eax, [ebp - 0x45c]
push str._d.sok
push eax
call fcn.00453cca
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.00426d80
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 0x4acf20
push str._s_d.buf
push eax
call fcn.00453cca
add esp, 0x10
lea eax, [ebp - 0x3f8]
lea ecx, [ebp - 0x4ac]
push eax
call fcn.00425710
lea eax, [ebp - 0x4ac]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [edi + 0x5e]
call fcn.00420650
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.004257d0
test esi, esi
je 0x449967
lea ecx, [edi + 0x5e]
call fcn.00420540
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x4ac]
call fcn.00425710
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.00420740
test eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
sete bl
call fcn.004257d0
push dword [edi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x4499cf
push 0x12030
push str.Local_Socket_Error
push str.Unable_to_create_socket_buffer.
jmp 0x4499f7
lea ecx, [ebp - 0x500]
mov dword [ebp - 4], 0xffffffff
call fcn.004204e0
mov eax, 1
jmp 0x449a13
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.004204e0
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.004530e4
mov esp, ebp
pop ebp
ret