Function at 0x407740
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Read file via mapping
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4385ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x449ea8
push edi
mov dword [esp + 0x74], eax
call fcn.0041cc41
add esp, 8
lea ecx, [esp + 0x10c]
push 1
call fcn.0040fc70
lea ecx, [esp + 0xe0]
mov dword [esp + 0x230], edi
call fcn.004061c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x230], 1
push ecx
lea ecx, [esp + 0x110]
mov dword [esp + 0x34], 0x44c000
mov dword [esp + 0x6c], edi
call fcn.0040b090
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x230], 2
cmp ecx, edi
je 0x407864
xor eax, eax
cmp ecx, edi
jle 0x4077f5
mov edx, dword [esp + 0x48]
cmp byte [edx + eax], 0x5c
jne 0x4077f0
mov byte [edx + eax], 0x2e
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
inc eax
cmp eax, ecx
jl 0x4077de
push 0xffffffffffffffff
push str..j2e.mapping
lea ecx, [esp + 0x28]
call fcn.004050a0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0x234], 3
call fcn.00404f80
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x234], 2
call dword [edx + 4]
mov eax, dword [esp + 0x48]
push eax
push 0x1000
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0x1000
push edi
push edi
push 0xf001f
push eax
mov dword [esp + 0x7c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x1d4]
call fcn.00419520
lea edx, [esp + 0x10c]
lea eax, [esp + 0xe0]
mov dword [0x449fb4], edx
mov dword [0x449fb8], eax
xor edx, edx
lea eax, [esp + 0x90]
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x90], edx
mov ebx, 8
push eax
mov byte [esp + 0x234], 4
mov dword [0x449fbc], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x94], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x110]
call fcn.004142c0
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x230], 5
cmp eax, edi
je 0x40792c
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10c]
push edx
call fcn.00405ff0
push eax
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0x238], 6
call fcn.0040ac00
add esp, 8
mov byte [esp + 0x230], 5
lea ecx, [esp + 0x34]
jmp 0x407985
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
cmp esi, edi
je 0x40798a
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x110]
call fcn.0040b670
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 7
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
push ecx
push esi
call fcn.0040faf0
add esp, 8
mov byte [esp + 0x230], 5
lea ecx, [esp + 0x10]
call fcn.00401b50
mov ecx, dword [0x449fb4]
lea edx, [esp + 0x80]
push edx
call fcn.0040bd20
mov eax, dword [esp + 0x88]
mov byte [esp + 0x230], bl
cmp eax, edi
jle 0x4079dc
push eax
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x84]
call dword [eax + 4]
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00409520
mov ecx, dword [0x449fb4]
add esp, 4
call fcn.004101e0
mov ecx, dword [0x449fb4]
lea edx, [esp + 0x58]
push edx
call fcn.0040bbf0
mov eax, dword [esp + 0x60]
mov byte [esp + 0x230], 9
cmp eax, edi
je 0x407a17
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [eax + 4]
mov ecx, dword [esp + 0x5c]
push ecx
mov ecx, 0x449f88
call fcn.004191b0
mov ecx, dword [0x449fb4]
lea edx, [esp + 0x70]
push edx
call fcn.0040baa0
mov eax, dword [esp + 0x78]
mov byte [esp + 0x230], 0xa
cmp eax, edi
je 0x407a52
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x74]
call dword [eax + 4]
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, 0x449f88
call fcn.00419140
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
push edx
lea ecx, [esp + 0x5c]
call dword [eax + 4]
mov ecx, dword [esp + 0x5c]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x28]
call fcn.004050a0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x70]
push edx
mov byte [esp + 0x234], 0xb
call fcn.0040c130
xor ecx, ecx
cmp eax, edi
sete cl
lea edx, [esp + 0x34]
mov dword [0x449f08], ecx
push edx
lea ecx, [esp + 0x110]
mov byte [esp + 0x234], 0xa
mov dword [esp + 0x58], edi
call fcn.00405ef0
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x234], 0xc
call dword [eax + 4]
mov esi, dword [esi + 4]
lea edx, [esp + 0x54]
push edx
push 0x445698
push esi
call fcn.0041c416
mov ebp, 0x43b2e8
add esp, 0xc
mov dword [esp + 0x34], ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x230], 0xd
call fcn.00401db0
mov ecx, 6
mov esi, 0x44567c
lea edi, [esp + 0x17c]
lea eax, [esp + 0x17c]
rep movsd dword es:[edi], dword [esi]
push 0x19
push eax
mov byte [esp + 0x238], 0xa
movsb byte es:[edi], byte [esi]
call fcn.00409c00
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x407bc4
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00414de0
add esp, 4
test eax, eax
jne 0x407bc4
lea edx, [esp + 0x20]
push 9
push edx
call fcn.0040a120
lea eax, [esp + 0x18]
push 0xa
push eax
mov byte [esp + 0x240], 0xe
call fcn.0040a120
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0xf
call dword [edx + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x449fcc]
push 0x50030
push esi
push eax
call fcn.0040fbb0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x449fcc]
push 0x64
call fcn.0040fb70
push 9
call fcn.0041cb4e
mov ecx, 5
mov esi, 0x445664
lea edi, [esp + 0x164]
push 0x1b
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 6
mov esi, 0x445648
lea edi, [esp + 0x1b8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 6
mov esi, 0x44562c
lea edi, [esp + 0x19c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1b8]
push ecx
movsw word es:[edi], word [esi]
call fcn.00409c00
mov esi, dword [eax]
lea edx, [esp + 0x1a0]
push 0x1a
push edx
call fcn.00409c00
mov edi, dword [eax]
lea eax, [esp + 0x174]
push 0x16
push eax
call fcn.00409c00
mov cl, byte [eax]
add esp, 0x18
test cl, cl
je 0x407cd5
push edi
push esi
push eax
call fcn.004097d0
add esp, 0xc
test eax, eax
jne 0x407cd5
lea ecx, [esp + 0x20]
push 0xb
push ecx
call fcn.0040a120
lea edx, [esp + 0x18]
push 0xa
push edx
mov byte [esp + 0x240], 0x12
call fcn.0040a120
add esp, 0x10
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x13
call dword [edx + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [0x449fcc]
push 0x50030
push esi
push eax
call fcn.0040fbb0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x449fcc]
push 0x64
call fcn.0040fb70
push 0xb
call fcn.0041cb4e
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [0x449fb4]
call fcn.0040b470
push 0xffffffffffffffff
push str.true
lea ecx, [esp + 0x28]
mov byte [esp + 0x238], 0x16
call fcn.004050a0
lea edx, [esp + 0x20]
lea ecx, [esp + 0xb0]
push edx
mov byte [esp + 0x234], 0x17
call fcn.004054e0
xor ecx, ecx
mov byte [esp + 0x230], 0x16
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x407f0b
mov ecx, dword [0x449fb4]
lea edx, [esp + 0x10]
push edx
call fcn.0040b090
mov edx, dword [esp + 0x18]
mov bl, 0x18
test edx, edx
mov byte [esp + 0x230], bl
jne 0x407dab
mov ecx, dword [0x449fb4]
lea eax, [esp + 0x34]
push eax
call fcn.00405ff0
mov esi, eax
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], 0x19
call dword [edx + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004019a0
mov dword [esp + 0x34], ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x230], 0x1a
call fcn.00401db0
mov edx, dword [esp + 0x18]
mov byte [esp + 0x230], bl
mov ecx, dword [esp + 0x14]
xor eax, eax
test edx, edx
jle 0x407dcc
cmp byte [ecx + eax], 0x3a
jne 0x407dc7
mov byte [ecx + eax], 0x2e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
cmp eax, edx
jl 0x407db5
xor eax, eax
test edx, edx
jle 0x407de9
cmp byte [ecx + eax], 0x5c
jne 0x407de4
mov byte [ecx + eax], 0x2e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
cmp eax, edx
jl 0x407dd2
push 0xffffffffffffffff
push str..j2e.mutex
lea ecx, [esp + 0x28]
call fcn.004050a0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x234], 0x1b
call fcn.00404f80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x234], bl
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x407e51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateMutex_error:__d_n
call fcn.0041cae0
add esp, 8
jmp 0x407e6c
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407eec
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [esp + 0x34]
push 0xd
push ecx
call fcn.0040a120
lea edx, [esp + 0x28]
push 0xa
push edx
mov byte [esp + 0x240], 0x1c
call fcn.0040a120
add esp, 0x10
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x234], 0x1d
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [0x449fcc]
push 0x50030
push esi
push eax
call fcn.0040fbb0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x449fcc]
push 0x64
call fcn.0040fb70
push 0xb
call fcn.0041cb4e
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0x20
call fcn.00401db0
mov byte [esp + 0x230], 0x16
jmp 0x407f45
push 0xffffffffffffffff
push str.custom
lea ecx, [esp + 0x28]
call fcn.004050a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x230], 0x21
push ecx
lea ecx, [esp + 0xb4]
call fcn.004054e0
test eax, eax
mov byte [esp + 0x230], 0x16
jne 0x407f45
call fcn.0041a300
call fcn.00415960
lea edx, [esp + 0x10]
lea ecx, [esp + 0x10c]
push edx
call fcn.0040b370
mov bl, 0x22
push 0xffffffffffffffff
push str.true
lea ecx, [esp + 0x28]
mov byte [esp + 0x238], bl
call fcn.004050a0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x234], 0x23
call fcn.004054e0
test eax, eax
mov byte [esp + 0x230], bl
mov edi, 0x43b2dc
je 0x407ffc
push 0xffffffffffffffff
push str.auto
lea ecx, [esp + 0x28]
call fcn.004050a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x230], 0x24
push ecx
lea ecx, [esp + 0x14]
call fcn.004054e0
test eax, eax
mov byte [esp + 0x230], bl
je 0x407ffc
push 0xffffffffffffffff
push 0x4455f4
lea ecx, [esp + 0x28]
call fcn.004050a0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x234], 0x25
call fcn.004054e0
test eax, eax
mov byte [esp + 0x230], bl
jne 0x40807b
push 0xffffffffffffffff
push 0x4455f4
lea ecx, [esp + 0x28]
call fcn.004050a0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x234], 0x26
call fcn.004054e0
mov ecx, dword [esp + 0x23c]
mov edx, dword [esp + 0x238]
neg eax
sbb eax, eax
mov byte [esp + 0x230], bl
add eax, 2
mov dword [esp + 0x20], edi
push eax
push ecx
push edx
mov ecx, 0x449ed0
call fcn.0041ac20
push 0x449ef8
mov ecx, 0x449ed0
call fcn.0041b4c0
mov eax, dword [0x449f00]
mov ecx, 0x449ef8
mov esi, eax
push eax
mov eax, dword [0x449ef8]
call dword [eax + 4]
mov ebx, dword [0x449efc]
jmp 0x408086
mov esi, dword [esp + 0x238]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0x27
call fcn.00401ec0
test eax, eax
je 0x4080a8
push eax
call fcn.0041b6a9
add esp, 4
xor ecx, ecx
lea edx, [esp + 0xd0]
mov dword [esp + 0x9c], ecx
dec esi
mov dword [esp + 0xa0], ecx
add ebx, 4
mov dword [esp + 0xa4], ecx
push edx
mov dword [esp + 0xac], ecx
mov byte [esp + 0x234], 0x16
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0x110]
mov dword [esp + 0x14], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 0x407720
call fcn.0040af10
mov eax, dword [esp + 0xd8]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x230], 0x28
jne 0x408138
lea eax, [esp + 0x98]
push eax
push ebx
push ebx
push fcn.004076b0
call fcn.0040b190
add esp, 0x10
jmp 0x408145
lea ecx, [esp + 0x98]
push ecx
call fcn.004076b0
mov esi, eax
call fcn.00415980
mov dword [0x449fb4], ebx
mov dword [0x449fb8], ebx
mov ebx, dword [esp + 0x68]
test ebx, ebx
je 0x408172
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xd0], ebp
lea ecx, [esp + 0xd0]
mov byte [esp + 0x230], 0x29
call fcn.00401ec0
test eax, eax
je 0x40819a
push eax
call fcn.0041b6a9
add esp, 4
mov dword [esp + 0xd0], edi
mov dword [esp + 0xb0], ebp
lea ecx, [esp + 0xb0]
mov byte [esp + 0x230], 0x2a
call fcn.00401ec0
test eax, eax
je 0x4081c9
push eax
call fcn.0041b6a9
add esp, 4
mov dword [esp + 0xb0], edi
mov dword [esp + 0x70], ebp
lea ecx, [esp + 0x70]
mov byte [esp + 0x230], 0x2b
call fcn.00401ec0
test eax, eax
je 0x4081f2
push eax
call fcn.0041b6a9
add esp, 4
mov dword [esp + 0x70], edi
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x58]
mov byte [esp + 0x230], 0x2c
call fcn.00401ec0
test eax, eax
je 0x408218
push eax
call fcn.0041b6a9
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x80], ebp
lea ecx, [esp + 0x80]
mov byte [esp + 0x230], 0x2d
call fcn.00401ec0
test eax, eax
je 0x408244
push eax
call fcn.0041b6a9
add esp, 4
mov dword [esp + 0x80], edi
mov dword [esp + 0xc0], ebp
lea ecx, [esp + 0xc0]
mov byte [esp + 0x230], 0x2e
call fcn.00401ec0
test eax, eax
je 0x408273
push eax
call fcn.0041b6a9
add esp, 4
lea ecx, [esp + 0x1d0]
mov dword [esp + 0xc0], edi
mov byte [esp + 0x230], 2
call fcn.00419620
mov dword [esp + 0x44], ebp
lea ecx, [esp + 0x44]
mov byte [esp + 0x230], 0x2f
call fcn.00401ec0
test eax, eax
je 0x4082b0
push eax
call fcn.0041b6a9
add esp, 4
mov dword [esp + 0x44], edi
lea ecx, [esp + 0xe0]
mov byte [esp + 0x230], 0x31
call fcn.00406300
lea eax, [esp + 0xf0]
mov dword [esp + 0xf0], ebp
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0xf0]
mov byte [esp + 0x230], 0x32
call fcn.00401ec0
test eax, eax
je 0x4082fb
push eax
call fcn.0041b6a9
add esp, 4
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf0], edi
mov byte [esp + 0x230], 0
call fcn.00401cf0
lea ecx, [esp + 0x10c]
mov dword [esp + 0x230], 0xffffffff
call fcn.00413b10
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret