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 [0x480d9c], 0x19721972
mov dword [0x480da4], 0x19721972
mov dword [0x480da8], 0x19721972
mov eax, dword [0x480d9c]
push eax
call fcn.00417350
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.00422900
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [0x48c0ec]
test eax, eax
jne 0x401080
push 0
call dword [0x48c0f0]
call fcn.0041b620
cmp eax, 1
jne 0x401094
mov dword [0x48a5f4], 1
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov dword [ebp - 0x3b4], 0xc
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 1
push str.7A750F4D_0586_424A_BE70_D3D9521C3D8F
push 0
lea edx, [ebp - 0x3b4]
push edx
call dword [0x48c0c0]
mov dword [0x48a5fc], eax
cmp dword [0x48a5fc], 0
jne 0x4010e9
push 0
call dword [0x48c0f0]
cmp dword [0x48237c], 1
jne 0x4010f7
call fcn.0040cc20
call fcn.00405ef0
cmp eax, 1
jne 0x401187
push str.F4EC7CCC_DFE6_4C5D_9818_B688832082AD
push 0
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [0x48a5f8], eax
cmp dword [0x48a5f8], 0
jne 0x40112d
push 0
call dword [0x48c120]
mov dword [ebp - 0x414], 0
push str.E58EA887_0FCB_45AF_B7BC_DCDE02807C07
push 0
push 0x100002
call dword [0x48c118]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
jne 0x401160
push 0
call dword [0x48c120]
mov eax, dword [ebp - 0x414]
push eax
call dword [0x48c11c]
mov ecx, dword [ebp - 0x414]
push ecx
call dword [0x48c0cc]
call fcn.0041aef0
push 0
call dword [0x48c120]
call fcn.0040a640
test eax, eax
jne 0x401198
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x3ec], 0
push str.5F3E9E26_2EF5_42FF_A491_157DC5CEC693
push 0
push 0x100000
call dword [0x48c0b4]
mov dword [ebp - 0x3ec], eax
cmp dword [ebp - 0x3ec], 0
je 0x4011d8
mov edx, dword [ebp - 0x3ec]
push edx
call dword [0x48c0cc]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.5F3E9E26_2EF5_42FF_A491_157DC5CEC693
push 1
push 0
call dword [0x48c0c0]
test eax, eax
jne 0x4011f3
push 0
call dword [0x48c0f0]
cmp dword [0x482384], 1
jne 0x40125c
cmp dword [0x48bf54], 0
jne 0x40125c
call fcn.0041b7e0
test eax, eax
jne 0x40125c
call fcn.0041b4d0
cmp eax, 0xa
jb 0x40125c
call fcn.0041b620
cmp eax, 1
jne 0x401240
lea eax, [ebp - 0x210]
push eax
call fcn.0040d850
add esp, 4
cmp eax, 1
jne 0x40123e
push 0
call dword [0x48c0f0]
jmp 0x40125c
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040e180
add esp, 4
cmp eax, 1
jne 0x40125c
push 0
call dword [0x48c0f0]
cmp dword [0x480db8], 1
jne 0x4012c1
cmp dword [0x48bf58], 0
jne 0x4012c1
call fcn.0041b4d0
cmp eax, 0xa
jb 0x4012c1
call fcn.0041b7e0
cmp eax, 1
jne 0x4012c1
push 0x480dc0
mov edx, dword [0x480dbc]
push edx
call fcn.00412260
add esp, 8
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
je 0x4012c1
mov eax, dword [ebp - 0x418]
push eax
call fcn.004126c0
add esp, 4
mov ecx, dword [ebp - 0x418]
push ecx
call dword [0x48c0e0]
push str.CFB97EC3_81FC_433B_9338_ECE314DA150B
push 1
push 0
call dword [0x48c0c0]
mov dword [ebp - 0x3e8], eax
cmp dword [ebp - 0x3e8], 0
jne 0x4012e7
push 0
call dword [0x48c0f0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012fc
push 0
call dword [0x48c0f0]
push str.DC1D7495_E834_4E33_97F6_F4BE5342981E
push 1
push 0
call dword [0x48c0c0]
mov dword [ebp - 0x3e0], eax
cmp dword [ebp - 0x3e0], 0
jne 0x401322
push 0
call dword [0x48c0f0]
push str.DC1D7495_E834_4E33_97F6_F4BE5342981E
call fcn.0041b8f0
add esp, 4
push str.F4EC7CCC_DFE6_4C5D_9818_B688832082AD
push 0
push 1
push 0
call dword [0x48c0e4]
mov dword [0x48a5f8], eax
cmp dword [0x48a5f8], 0
jne 0x401356
push 0
call dword [0x48c0f0]
push str.F4EC7CCC_DFE6_4C5D_9818_B688832082AD
call fcn.0041b8f0
add esp, 4
cmp dword [0x480988], 1
jne 0x401531
push 0x104
lea edx, [ebp - 0x620]
push edx
push 0
call dword [0x48c0ec]
test eax, eax
je 0x401529
push 0x5c
lea eax, [ebp - 0x620]
push eax
call fcn.00401c50
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x624]
push edx
push 0x4806c0
call fcn.0040a3c0
add esp, 8
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
je 0x40151f
push 0x5c
mov eax, dword [ebp - 0x628]
push eax
call fcn.00401c50
add esp, 8
xor ecx, ecx
mov word [eax], cx
push 0x208
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x401510
mov edx, dword [ebp - 0x62c]
push edx
push 0x104
call dword [0x48c12c]
test eax, eax
je 0x4014fb
push 0x5c
mov eax, dword [ebp - 0x62c]
push eax
call fcn.00401c50
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 [0x48c238]
test eax, eax
je 0x4014f9
mov ecx, dword [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x620]
push edx
call dword [0x48c238]
test eax, eax
je 0x4014f9
call dword [0x48c0b8]
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x630]
push eax
mov ecx, dword [ebp - 0x638]
push ecx
call dword [0x48c494]
mov dword [ebp - 0x634], eax
push str.5B67422F_7311_4474_B027_517BAF4032B6
mov edx, dword [ebp - 0x634]
mov eax, dword [edx + 4]
push eax
call dword [0x48c238]
test eax, eax
je 0x4014f9
push str.175D1049_0FC8_4C06_9388_C2818E931420
mov ecx, dword [ebp - 0x634]
mov edx, dword [ecx + 4]
push edx
call dword [0x48c238]
test eax, eax
je 0x4014f9
push str.33385955_4ECF_4283_91F5_BCA5FACA52F5
mov eax, dword [ebp - 0x634]
mov ecx, dword [eax + 4]
push ecx
call dword [0x48c238]
test eax, eax
je 0x4014f9
push 1
push 0x48098c
push 0x480a56
push 0
call dword [0x48c268]
cmp eax, 2
jne 0x4014f9
push 0
call dword [0x48c0f0]
jmp 0x401503
push 0
call dword [0x48c0f0]
mov edx, dword [ebp - 0x62c]
push edx
call dword [0x48c0e0]
mov eax, dword [ebp - 0x628]
push eax
call dword [0x48c0e0]
jmp 0x401527
push 0
call dword [0x48c0f0]
jmp 0x401531
push 0
call dword [0x48c0f0]
lea ecx, [ebp - 0x3a8]
push ecx
push 2
call dword [0x48c548]
test eax, eax
je 0x40154c
push 0
call dword [0x48c0f0]
call fcn.00409fd0
test eax, eax
jne 0x40155d
push 0
call dword [0x48c0f0]
call fcn.00416850
test eax, eax
jne 0x40156e
push 0
call dword [0x48c0f0]
call fcn.00405a30
test eax, eax
jne 0x40157f
push 0
call dword [0x48c0f0]
call fcn.00404610
test eax, eax
jne 0x401590
push 0
call dword [0x48c0f0]
call fcn.00404530
test eax, eax
jne 0x4015a1
push 0
call dword [0x48c0f0]
cmp dword [0x480cc4], 0
jne 0x4015c3
push 0x4806c0
call fcn.0040a070
add esp, 4
test eax, eax
jne 0x4015c3
push 0
call dword [0x48c0f0]
push 0x4806c0
call fcn.0040a4b0
add esp, 4
test eax, eax
jne 0x4015dc
push 0
call dword [0x48c0f0]
cmp dword [0x480cc4], 0
jne 0x401600
cmp dword [0x482370], 1
jne 0x401600
call fcn.0040cec0
cmp eax, 1
jne 0x401600
push 0
call dword [0x48c0f0]
mov dword [ebp - 0x3b8], 0
mov dword [ebp - 0x40c], 0
cmp dword [0x48a5f4], 1
jne 0x401648
lea edx, [ebp - 0x3b8]
push edx
push 0x43c008
call fcn.0041c160
add esp, 8
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x401648
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffe
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x40166c
push 0
call dword [0x48c0f0]
push 0x7fff
mov eax, dword [ebp - 0x218]
push eax
call dword [0x48c114]
test eax, eax
jne 0x40168a
push 0
call dword [0x48c0f0]
push 0xfffe
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4016ae
push 0
call dword [0x48c0f0]
push 0x7fff
mov ecx, dword [ebp - 0x214]
push ecx
call dword [0x48c150]
test eax, eax
jne 0x4016cc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffe
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4016ea
push 0
call dword [0x48c0f0]
mov edx, dword [ebp - 0x218]
push edx
push 0x4322f8
push 0x7fff
mov eax, dword [ebp - 8]
push eax
call fcn.0042297a
add esp, 0x10
push 0xfffe
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x3e4], eax
cmp dword [ebp - 0x3e4], 0
jne 0x40172b
push 0
call dword [0x48c0f0]
mov ecx, dword [ebp - 0x214]
push ecx
push 0x432318
push 0x7fff
mov edx, dword [ebp - 0x3e4]
push edx
call fcn.0042297a
add esp, 0x10
push 0xfffe
push 0x40
call dword [0x48c0d4]
mov dword [ebp - 0x3c0], eax
cmp dword [ebp - 0x3c0], 0
jne 0x40176f
push 0
call dword [0x48c0f0]
mov eax, dword [ebp - 0x214]
push eax
push 0x432338
push 0x7fff
mov ecx, dword [ebp - 0x3c0]
push ecx
call fcn.0042297a
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 [0x489098], 1
jne 0x40182b
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 [0x489094], 1
jne 0x401878
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 [0x48909c], 1
jne 0x4018c5
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 0x401c02
mov dword [ebp - 0x63c], 0
jmp 0x4018fd
mov eax, dword [ebp - 0x63c]
add eax, 1
mov dword [ebp - 0x63c], eax
mov ecx, dword [ebp - 0x63c]
cmp ecx, dword [ebp - 0x3f0]
jge 0x401bfd
cmp dword [0x48a5f4], 0
jne 0x40194b
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.0040b240
add esp, 0xc
mov dword [ebp - 0x640], eax
jmp 0x40198d
lea ecx, [ebp - 0x3d0]
push ecx
push str.E58EA887_0FCB_45AF_B7BC_DCDE02807C07
mov edx, dword [0x46ac00]
push edx
push 0x46ac08
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.0040ef80
add esp, 0x1c
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 1
jne 0x401bed
cmp dword [0x480cc4], 1
jne 0x401b2d
mov ecx, dword [ebp - 0x63c]
cmp dword [ebp + ecx*4 - 0x3dc], 1
jne 0x401a25
push 0
mov edx, dword [ebp - 0x3d0]
push edx
call dword [0x48c0f4]
cmp eax, 0x102
jne 0x401a25
push str.B53ED298_7FB7_4ECA_B17B_395F630F0BB7
push 0
push 0x100000
call dword [0x48c0b4]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
jne 0x401a0f
push 0xa
mov eax, dword [0x48a5f8]
push eax
call dword [0x48c0f4]
cmp eax, 0x102
je 0x401a0d
jmp 0x401c02
jmp 0x4019b7
cmp dword [ebp - 0x64c], 0
je 0x401a25
mov ecx, dword [ebp - 0x64c]
push ecx
call dword [0x48c0cc]
mov edx, dword [ebp - 0x63c]
cmp dword [ebp + edx*4 - 0x3dc], 0
jne 0x401aa4
push 0
mov eax, dword [ebp - 0x3d0]
push eax
call dword [0x48c0f4]
cmp eax, 0x102
jne 0x401aa4
push str.2C343EEE_2C4F_4A77_B975_69E2DAE50D37
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
jne 0x401a8e
push 0xa
mov ecx, dword [0x48a5f8]
push ecx
call dword [0x48c0f4]
cmp eax, 0x102
je 0x401a8c
jmp 0x401c02
jmp 0x401a35
cmp dword [ebp - 0x650], 0
je 0x401aa4
mov edx, dword [ebp - 0x650]
push edx
call dword [0x48c0cc]
mov eax, dword [ebp - 0x63c]
cmp dword [ebp + eax*4 - 0x3dc], 2
jne 0x401b23
push 0
mov ecx, dword [ebp - 0x3d0]
push ecx
call dword [0x48c0f4]
cmp eax, 0x102
jne 0x401b23
push str.E7CD8403_0DBD_4D5D_AB25_F5659B1A4578
push 0
push 0x100000
call dword [0x48c0b4]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
jne 0x401b0d
push 0xa
mov edx, dword [0x48a5f8]
push edx
call dword [0x48c0f4]
cmp eax, 0x102
je 0x401b0b
jmp 0x401c02
jmp 0x401ab4
cmp dword [ebp - 0x654], 0
je 0x401b23
mov eax, dword [ebp - 0x654]
push eax
call dword [0x48c0cc]
jmp 0x401c02
mov dword [ebp - 0x648], 0
xor ecx, ecx
mov dword [ebp - 0x644], ecx
mov edx, dword [0x48a5f8]
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 [0x48c13c]
push 0
mov edx, dword [0x48a5f8]
push edx
call dword [0x48c0f4]
cmp eax, 0x102
je 0x401b89
mov dword [ebp - 4], 0
jmp 0x401bfd
cmp dword [ebp - 0x3d0], 0
je 0x401ba1
push 0
mov eax, dword [ebp - 0x3d0]
push eax
call dword [0x48c100]
cmp dword [ebp - 0x3d0], 0
je 0x401bb7
mov ecx, dword [ebp - 0x3d0]
push ecx
call dword [0x48c0cc]
cmp dword [ebp - 0x3cc], 0
je 0x401bcd
mov edx, dword [ebp - 0x3cc]
push edx
call dword [0x48c0cc]
push 0x10
push 0
lea eax, [ebp - 0x3d0]
push eax
call fcn.00422900
add esp, 0xc
push 0x3e8
call dword [0x48c154]
jmp 0x401bf8
push 0x3e8
call dword [0x48c154]
jmp 0x4018ee
jmp 0x4018d8
call fcn.0040a060
cmp dword [0x489090], 1
jne 0x401c1f
push 0xffffffffffffffff
mov ecx, dword [0x48c010]
push ecx
call dword [0x48c0f4]
call fcn.0041b620
cmp eax, 1
jne 0x401c36
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0
call dword [0x48c0f0]
mov esp, ebp
pop ebp
ret 0x10