Function at 0x401000
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov dword [0x47ed5c], 0x19721972
mov dword [0x47ed64], 0x19721972
mov dword [0x47ed68], 0x19721972
mov eax, dword [0x47ed5c]
push eax
call fcn.00416a40
add esp, 4
test eax, eax
jne 0x401041
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00421ff0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [0x48a0ac]
test eax, eax
jne 0x401080
push 0
call dword [0x48a0b0]
call fcn.0041ad10
cmp eax, 1
jne 0x401094
mov dword [0x4885b4], 1
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
cmp dword [0x482810], 1
jne 0x4010c5
cmp dword [0x482818], 1
jne 0x4010c5
call fcn.00401ea0
cmp eax, 1
jne 0x4010c5
push 0
call dword [0x48a0b0]
mov dword [ebp - 0x3b4], 0xc
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 1
push str.F0EDF208_174E_48AF_8F5E_018501900CC5
push 0
lea edx, [ebp - 0x3b4]
push edx
call dword [0x48a080]
mov dword [0x4885bc], eax
cmp dword [0x4885bc], 0
jne 0x40110d
push 0
call dword [0x48a0b0]
cmp dword [0x480338], 1
jne 0x40111b
call fcn.0040cb30
call fcn.00405ef0
cmp eax, 1
jne 0x4011ab
push str.9C60C0E2_00C8_46D2_B214_3E70E2747F58
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [0x4885b8], eax
cmp dword [0x4885b8], 0
jne 0x401151
push 0
call dword [0x48a0e0]
mov dword [ebp - 0x414], 0
push str.15A74F20_2E2A_4934_BEF7_7C6031C32364
push 0
push 0x100002
call dword [0x48a0d8]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x401184
push 0
call dword [0x48a0e0]
mov eax, dword [ebp - 0x414]
push eax
call dword [0x48a0dc]
mov ecx, dword [ebp - 0x414]
push ecx
call dword [0x48a08c]
call fcn.0041a5e0
push 0
call dword [0x48a0e0]
call fcn.0040a550
test eax, eax
jne 0x4011bc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x3ec], 0
push str.440FC227_74ED_44AE_93CA_E0377D51C2B4
push 0
push 0x100000
call dword [0x48a074]
mov dword [ebp - 0x3ec], eax
cmp dword [ebp - 0x3ec], 0
je 0x4011fc
mov edx, dword [ebp - 0x3ec]
push edx
call dword [0x48a08c]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.440FC227_74ED_44AE_93CA_E0377D51C2B4
push 1
push 0
call dword [0x48a080]
test eax, eax
jne 0x401217
push 0
call dword [0x48a0b0]
cmp dword [0x480340], 1
jne 0x401280
cmp dword [0x489f14], 0
jne 0x401280
call fcn.0041aed0
test eax, eax
jne 0x401280
call fcn.0041abc0
cmp eax, 0xa
jb 0x401280
call fcn.0041ad10
cmp eax, 1
jne 0x401264
lea eax, [ebp - 0x210]
push eax
call fcn.0040d760
add esp, 4
cmp eax, 1
jne 0x401262
push 0
call dword [0x48a0b0]
jmp 0x401280
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040e090
add esp, 4
cmp eax, 1
jne 0x401280
push 0
call dword [0x48a0b0]
cmp dword [0x47ed74], 1
jne 0x4012e5
cmp dword [0x489f18], 0
jne 0x4012e5
call fcn.0041abc0
cmp eax, 0xa
jb 0x4012e5
call fcn.0041aed0
cmp eax, 1
jne 0x4012e5
push 0x47ed7c
mov edx, dword [0x47ed78]
push edx
call fcn.00411900
add esp, 8
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x4012e5
mov eax, dword [ebp - 0x418]
push eax
call fcn.00411d60
add esp, 4
mov ecx, dword [ebp - 0x418]
push ecx
call dword [0x48a0a0]
push str.5B6AF2B4_AB81_410C_B326_20BC9E3CC7F9
push 1
push 0
call dword [0x48a080]
mov dword [ebp - 0x3e8], eax
cmp dword [ebp - 0x3e8], 0
jne 0x40130b
push 0
call dword [0x48a0b0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401320
push 0
call dword [0x48a0b0]
push str.EAA3B2D1_9975_4E6D_9629_9D7A30B180D2
push 1
push 0
call dword [0x48a080]
mov dword [ebp - 0x3e0], eax
cmp dword [ebp - 0x3e0], 0
jne 0x401346
push 0
call dword [0x48a0b0]
push str.EAA3B2D1_9975_4E6D_9629_9D7A30B180D2
call fcn.0041afe0
add esp, 4
push str.9C60C0E2_00C8_46D2_B214_3E70E2747F58
push 0
push 1
push 0
call dword [0x48a0a4]
mov dword [0x4885b8], eax
cmp dword [0x4885b8], 0
jne 0x40137a
push 0
call dword [0x48a0b0]
push str.9C60C0E2_00C8_46D2_B214_3E70E2747F58
call fcn.0041afe0
add esp, 4
cmp dword [0x47e948], 1
jne 0x401555
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0
call dword [0x48a0ac]
test eax, eax
je 0x40154d
push 0x5c
lea eax, [ebp - 0x620]
push eax
call fcn.00401c70
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x624]
push edx
push 0x47e680
call fcn.0040a2d0
add esp, 8
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
je 0x401543
push 0x5c
mov eax, dword [ebp - 0x628]
push eax
call fcn.00401c70
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 0x208
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x401534
mov edx, dword [ebp - 0x62c]
push edx
push 0x104
call dword [0x48a0ec]
test eax, eax
je 0x40151f
push 0x5c
mov eax, dword [ebp - 0x62c]
push eax
call fcn.00401c70
add esp, 8
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x628]
push edx
lea eax, [ebp - 0x620]
push eax
call dword [0x48a1f8]
test eax, eax
je 0x40151d
mov ecx, dword [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [0x48a1f8]
test eax, eax
je 0x40151d
call dword [0x48a078]
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x630]
push eax
mov ecx, dword [ebp - 0x638]
push ecx
call dword [0x48a450]
mov dword [ebp - 0x634], eax
push str.A2426CAE_8A15_4BE6_B605_C15E164B11F7
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 4]
push eax
call dword [0x48a1f8]
test eax, eax
je 0x40151d
push str.089A872C_6EAF_498F_B7AA_281561265EC4
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 4]
push edx
call dword [0x48a1f8]
test eax, eax
je 0x40151d
push str.7DB595EB_79E1_48FD_A7C0_57D2CE22717F
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 4]
push ecx
call dword [0x48a1f8]
test eax, eax
je 0x40151d
push 1
push 0x47e94c
push 0x47ea16
push 0
call dword [0x48a224]
cmp eax, 2
jne 0x40151d
push 0
call dword [0x48a0b0]
jmp 0x401527
push 0
call dword [0x48a0b0]
mov edx, dword [ebp - 0x62c]
push edx
call dword [0x48a0a0]
mov eax, dword [ebp - 0x628]
push eax
call dword [0x48a0a0]
jmp 0x40154b
push 0
call dword [0x48a0b0]
jmp 0x401555
push 0
call dword [0x48a0b0]
lea ecx, [ebp - 0x3a8]
push ecx
push 2
call dword [0x48a504]
test eax, eax
je 0x401570
push 0
call dword [0x48a0b0]
call fcn.00409ee0
test eax, eax
jne 0x401581
push 0
call dword [0x48a0b0]
call fcn.00415f40
test eax, eax
jne 0x401592
push 0
call dword [0x48a0b0]
call fcn.00405a30
test eax, eax
jne 0x4015a3
push 0
call dword [0x48a0b0]
call fcn.00404610
test eax, eax
jne 0x4015b4
push 0
call dword [0x48a0b0]
call fcn.00404530
test eax, eax
jne 0x4015c5
push 0
call dword [0x48a0b0]
cmp dword [0x47ec84], 0
jne 0x4015e7
push 0x47e680
call fcn.00409f80
add esp, 4
test eax, eax
jne 0x4015e7
push 0
call dword [0x48a0b0]
push 0x47e680
call fcn.0040a3c0
add esp, 4
test eax, eax
jne 0x401600
push 0
call dword [0x48a0b0]
cmp dword [0x47ec84], 0
jne 0x401624
cmp dword [0x48032c], 1
jne 0x401624
call fcn.0040cdd0
cmp eax, 1
jne 0x401624
push 0
call dword [0x48a0b0]
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x40c], 0
cmp dword [0x4885b4], 1
jne 0x40166c
lea edx, [ebp - 0x3b8]
push edx
push 0x43a008
call fcn.0041b850
add esp, 8
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x40166c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x401690
push 0
call dword [0x48a0b0]
push 0x7fff
mov eax, dword [ebp - 0x218]
push eax
call dword [0x48a0d4]
test eax, eax
jne 0x4016ae
push 0
call dword [0x48a0b0]
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4016d2
push 0
call dword [0x48a0b0]
push 0x7fff
mov ecx, dword [ebp - 0x214]
push ecx
call dword [0x48a110]
test eax, eax
jne 0x4016f0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40170e
push 0
call dword [0x48a0b0]
mov edx, dword [ebp - 0x218]
push edx
push 0x4312f8
push 0x7fff
mov eax, dword [ebp - 8]
push eax
call fcn.0042206a
add esp, 0x10
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x3e4], eax
cmp dword [ebp - 0x3e4], 0
jne 0x40174f
push 0
call dword [0x48a0b0]
mov ecx, dword [ebp - 0x214]
push ecx
push 0x431318
push 0x7fff
mov edx, dword [ebp - 0x3e4]
push edx
call fcn.0042206a
add esp, 0x10
push 0xfffe
push 0x40
call dword [0x48a094]
mov dword [ebp - 0x3c0], eax
cmp dword [ebp - 0x3c0], 0
jne 0x401793
push 0
call dword [0x48a0b0]
mov eax, dword [ebp - 0x214]
push eax
push 0x431338
push 0x7fff
mov ecx, dword [ebp - 0x3c0]
push ecx
call fcn.0042206a
add esp, 0x10
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x408], 0
xor edx, edx
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x400], edx
mov dword [ebp - 0x3dc], 0
xor eax, eax
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x3fc], 0
xor ecx, ecx
mov dword [ebp - 0x3f8], ecx
mov dword [ebp - 0x3f4], ecx
cmp dword [0x487050], 1
jne 0x40184f
mov edx, dword [ebp - 0x3bc]
mov eax, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x408], eax
mov ecx, dword [ebp - 0x3bc]
mov dword [ebp + ecx*4 - 0x3dc], 0
mov edx, dword [ebp - 0x3bc]
mov dword [ebp + edx*4 - 0x3fc], 1
mov eax, dword [ebp - 0x3bc]
add eax, 1
mov dword [ebp - 0x3bc], eax
cmp dword [0x48704c], 1
jne 0x40189c
mov ecx, dword [ebp - 0x3bc]
mov edx, dword [ebp - 0x3e4]
mov dword [ebp + ecx*4 - 0x408], edx
mov eax, dword [ebp - 0x3bc]
mov dword [ebp + eax*4 - 0x3dc], 1
mov ecx, dword [ebp - 0x3bc]
mov dword [ebp + ecx*4 - 0x3fc], 1
mov edx, dword [ebp - 0x3bc]
add edx, 1
mov dword [ebp - 0x3bc], edx
cmp dword [0x487054], 1
jne 0x4018e9
mov eax, dword [ebp - 0x3bc]
mov ecx, dword [ebp - 0x3c0]
mov dword [ebp + eax*4 - 0x408], ecx
mov edx, dword [ebp - 0x3bc]
mov dword [ebp + edx*4 - 0x3dc], 2
mov eax, dword [ebp - 0x3bc]
mov dword [ebp + eax*4 - 0x3fc], 1
mov ecx, dword [ebp - 0x3bc]
add ecx, 1
mov dword [ebp - 0x3bc], ecx
mov edx, dword [ebp - 0x3bc]
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x401c26
mov dword [ebp - 0x63c], 0
jmp 0x401921
mov eax, dword [ebp - 0x63c]
add eax, 1
mov dword [ebp - 0x63c], eax
mov ecx, dword [ebp - 0x63c]
cmp ecx, dword [ebp - 0x3f0]
jge 0x401c21
cmp dword [0x4885b4], 0
jne 0x40196f
lea edx, [ebp - 0x3d0]
push edx
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp + eax*4 - 0x3fc]
push ecx
mov edx, dword [ebp - 0x63c]
mov eax, dword [ebp + edx*4 - 0x408]
push eax
call fcn.0040b150
add esp, 0xc
mov dword [ebp - 0x640], eax
jmp 0x4019b1
lea ecx, [ebp - 0x3d0]
push ecx
push str.15A74F20_2E2A_4934_BEF7_7C6031C32364
mov edx, dword [0x468570]
push edx
push 0x468578
mov eax, dword [ebp - 0x3b8]
push eax
mov ecx, dword [ebp - 0x40c]
push ecx
mov edx, dword [ebp - 0x63c]
mov eax, dword [ebp + edx*4 - 0x408]
push eax
call fcn.0040ee90
add esp, 0x1c
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 1
jne 0x401c11
cmp dword [0x47ec84], 1
jne 0x401b51
mov ecx, dword [ebp - 0x63c]
cmp dword [ebp + ecx*4 - 0x3dc], 1
jne 0x401a49
push 0
mov edx, dword [ebp - 0x3d0]
push edx
call dword [0x48a0b4]
cmp eax, 0x102
jne 0x401a49
push str.1EFE6ACF_A439_4207_8E76_02A0BB22134A
push 0
push 0x100000
call dword [0x48a074]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
jne 0x401a33
push 0xa
mov eax, dword [0x4885b8]
push eax
call dword [0x48a0b4]
cmp eax, 0x102
je 0x401a31
jmp 0x401c26
jmp 0x4019db
cmp dword [ebp - 0x64c], 0
je 0x401a49
mov ecx, dword [ebp - 0x64c]
push ecx
call dword [0x48a08c]
mov edx, dword [ebp - 0x63c]
cmp dword [ebp + edx*4 - 0x3dc], 0
jne 0x401ac8
push 0
mov eax, dword [ebp - 0x3d0]
push eax
call dword [0x48a0b4]
cmp eax, 0x102
jne 0x401ac8
push str.132F7929_FEBC_4E58_9747_81A3917A5994
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
jne 0x401ab2
push 0xa
mov ecx, dword [0x4885b8]
push ecx
call dword [0x48a0b4]
cmp eax, 0x102
je 0x401ab0
jmp 0x401c26
jmp 0x401a59
cmp dword [ebp - 0x650], 0
je 0x401ac8
mov edx, dword [ebp - 0x650]
push edx
call dword [0x48a08c]
mov eax, dword [ebp - 0x63c]
cmp dword [ebp + eax*4 - 0x3dc], 2
jne 0x401b47
push 0
mov ecx, dword [ebp - 0x3d0]
push ecx
call dword [0x48a0b4]
cmp eax, 0x102
jne 0x401b47
push str.F462453E_9B98_49C8_B535_3933FB9976D4
push 0
push 0x100000
call dword [0x48a074]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
jne 0x401b31
push 0xa
mov edx, dword [0x4885b8]
push edx
call dword [0x48a0b4]
cmp eax, 0x102
je 0x401b2f
jmp 0x401c26
jmp 0x401ad8
cmp dword [ebp - 0x654], 0
je 0x401b47
mov eax, dword [ebp - 0x654]
push eax
call dword [0x48a08c]
jmp 0x401c26
mov dword [ebp - 0x648], 0
xor ecx, ecx
mov dword [ebp - 0x644], ecx
mov edx, dword [0x4885b8]
mov dword [ebp - 0x648], edx
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x644], eax
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x648]
push ecx
push 2
call dword [0x48a0fc]
push 0
mov edx, dword [0x4885b8]
push edx
call dword [0x48a0b4]
cmp eax, 0x102
je 0x401bad
mov dword [ebp - 4], 0
jmp 0x401c21
cmp dword [ebp - 0x3d0], 0
je 0x401bc5
push 0
mov eax, dword [ebp - 0x3d0]
push eax
call dword [0x48a0c0]
cmp dword [ebp - 0x3d0], 0
je 0x401bdb
mov ecx, dword [ebp - 0x3d0]
push ecx
call dword [0x48a08c]
cmp dword [ebp - 0x3cc], 0
je 0x401bf1
mov edx, dword [ebp - 0x3cc]
push edx
call dword [0x48a08c]
push 0x10
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.00421ff0
add esp, 0xc
push 0x3e8
call dword [0x48a114]
jmp 0x401c1c
push 0x3e8
call dword [0x48a114]
jmp 0x401912
jmp 0x4018fc
call fcn.00409f70
cmp dword [0x487048], 1
jne 0x401c43
push 0xffffffffffffffff
mov ecx, dword [0x489fd0]
push ecx
call dword [0x48a0b4]
call fcn.0041ad10
cmp eax, 1
jne 0x401c5a
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0
call dword [0x48a0b0]
mov esp, ebp
pop ebp
ret 0x10