Function at 0x1004485
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 0x44], ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [eax], ebx
push dword [0x10089a8]
mov eax, dword [0x10089a4]
push eax
push dword [0x1008910]
mov esi, 0x10086f0
push 0x1001520
push 0x104
push esi
call fcn.01002f19
add esp, 0x24
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x1004513
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x8000
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2b
test byte [eax + 0x1c], 1
je 0x1004b2b
push dword [ebp - 4]
push 0x10012c0
push 0x61
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019d0
jmp 0x1004b2b
movzx eax, byte [0x100800d]
push edi
neg eax
sbb eax, eax
and eax, esi
push eax
push dword [0x1008004]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10086ec], eax
cmp eax, ebx
jne 0x100458c
mov dword [edi], 0x8000
call esi
cmp eax, ebx
jle 0x100455c
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x100458c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x62
jmp 0x1004b0f
call esi
cmp eax, 0xb7
jne 0x100468a
mov eax, dword [section..data]
mov ebx, 0x800700b7
cmp eax, section..data
je 0x10045c3
test byte [eax + 0x1c], 1
je 0x10045c3
push ebx
push 0x10012c0
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019d0
cmp byte [0x100891a], 0
je 0x10045de
cmp byte [0x100891b], 0
jne 0x10045de
cmp dword [0x100891c], 0
jbe 0x100460e
mov dword [edi], 0x2000
mov dword [ebp - 4], ebx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push ebx
push 0x10012c0
push 0x64
jmp 0x1004b0f
mov eax, dword [ebp + 8]
mov dword [eax], 1
xor ebx, ebx
push dword [0x1008004]
push ebx
push ebx
push 0xf001f
push dword [0x10086ec]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10088f8], eax
mov eax, dword [0x10088f8]
test eax, eax
jne 0x10046c7
mov dword [edi], 0x8000
call esi
cmp eax, ebx
jle 0x100465a
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x10046c7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x66
jmp 0x1004b0f
cmp byte [0x100891a], bl
je 0x1004619
mov ecx, 0x80070490
mov dword [edi], 0x4000
mov dword [ebp - 4], ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push ecx
push 0x10012c0
push 0x65
jmp 0x1004b0f
xor esi, esi
push esi
push esi
push esi
push 0x100003
push 0x10086e8
call dword [sym.imp.ntdll.dll_NtCreateEvent]
push 0x10
cmp eax, esi
mov esi, dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop ebx
jge 0x100472c
push eax
mov dword [edi], ebx
call esi
test eax, eax
jle 0x10046fc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x100472c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x67
jmp 0x1004b0f
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1004788
call fcn.01002b68
test eax, eax
jge 0x1004b2a
push eax
mov dword [edi], ebx
call esi
test eax, eax
jle 0x1004754
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x1004b2a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x68
jmp 0x1004b0f
xor eax, eax
push eax
push eax
push eax
push 0x100003
push 0x10086d8
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jge 0x10047e4
push eax
mov dword [edi], ebx
call esi
test eax, eax
jle 0x10047b4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x10047e4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x69
jmp 0x1004b0f
push 0
push 1
push 0
push 0x100003
push 0x10086dc
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jge 0x1004841
push eax
mov dword [edi], ebx
call esi
test eax, eax
jle 0x1004811
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x1004841
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x6a
jmp 0x1004b0f
push 0
push 1
push 0
push 0x100003
push 0x10086e0
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jge 0x100489e
push eax
mov dword [edi], ebx
call esi
test eax, eax
jle 0x100486e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x100489e
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x6b
jmp 0x1004b0f
push 0
push 0
push 0x1f0001
push 0x10086e4
call dword [sym.imp.ntdll.dll_NtCreateMutant]
test eax, eax
jge 0x10048f9
push eax
mov dword [edi], ebx
call esi
test eax, eax
jle 0x10048c9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x10048f9
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x6c
jmp 0x1004b0f
mov eax, dword [0x1008004]
mov ebx, dword [sym.imp.ntdll.dll_NtDuplicateObject]
mov dword [ebp - 0x44], eax
mov eax, dword [0x1008914]
push 0
push 2
mov dword [ebp - 0x28], eax
mov eax, dword [0x1008008]
push 0x100003
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
push dword [0x10086d0]
push dword [0x10086d8]
push 0xffffffffffffffff
call ebx
test eax, eax
jge 0x100497f
push eax
mov dword [edi], 0x10
call esi
test eax, eax
jle 0x100494f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x100497f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x6d
jmp 0x1004b0f
push 0
push 2
push 0x100003
lea eax, [ebp - 0x3c]
push eax
push dword [0x10086d0]
push dword [0x10086dc]
push 0xffffffffffffffff
call ebx
test eax, eax
jge 0x10049e7
push eax
mov dword [edi], 0x10
call esi
test eax, eax
jle 0x10049b7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x10049e7
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x6e
jmp 0x1004b0f
push 0
push 2
push 0x100003
lea eax, [ebp - 0x38]
push eax
push dword [0x10086d0]
push dword [0x10086e0]
push 0xffffffffffffffff
call ebx
test eax, eax
jge 0x1004a4f
push eax
mov dword [edi], 0x10
call esi
test eax, eax
jle 0x1004a1f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x1004a4f
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x6f
jmp 0x1004b0f
push 0
push 2
push 0x1f0001
lea eax, [ebp - 0x34]
push eax
push dword [0x10086d0]
push dword [0x10086e4]
push 0xffffffffffffffff
call ebx
test eax, eax
jge 0x1004ab4
push eax
mov dword [edi], 0x10
call esi
test eax, eax
jle 0x1004a87
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x1004ab4
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x70
jmp 0x1004b0f
push 2
push 2
push 0xf001f
lea eax, [ebp - 0x30]
push eax
push dword [0x10086d0]
push dword [0x10086ec]
push 0xffffffffffffffff
call ebx
test eax, eax
jge 0x1004b1c
push eax
mov dword [edi], 0x20
call esi
test eax, eax
jle 0x1004aec
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jge 0x1004b1c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1004b2a
test byte [eax + 0x1c], 1
je 0x1004b2a
push dword [ebp - 4]
push 0x10012c0
push 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010019d0
jmp 0x1004b2a
mov edi, dword [0x10088f8]
push 0x10
pop ecx
lea esi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8