Function at 0x403230
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 0x41f181
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [esp + 0x220]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x428f90
push ebp
mov dword [esp + 0x54], eax
call fcn.00412e86
add esp, 8
lea ecx, [esp + 0x100]
push 1
call fcn.00407da0
lea ecx, [esp + 0xd4]
mov dword [esp + 0x224], ebp
call fcn.00401000
lea ecx, [esp + 0x3c]
mov byte [esp + 0x224], 1
push ecx
lea ecx, [esp + 0x104]
mov dword [esp + 0x34], 0x42b000
mov dword [esp + 0x38], ebp
call fcn.00406b00
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x224], 2
cmp ecx, ebp
je 0x403354
xor eax, eax
cmp ecx, ebp
jle 0x4032e5
mov edx, dword [esp + 0x40]
cmp byte [edx + eax], 0x5c
jne 0x4032e0
mov byte [edx + eax], 0x2e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
jl 0x4032ce
push 0xffffffffffffffff
push str..j2e.mapping
lea ecx, [esp + 0x28]
call fcn.00402800
lea edx, [esp + 0x20]
lea ecx, [esp + 0x3c]
push edx
mov byte [esp + 0x228], 3
call fcn.004025d0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x228], 2
call dword [edx + 4]
mov eax, dword [esp + 0x40]
push eax
push 0x1000
push ebp
push 4
push ebp
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0x1000
push ebp
push ebp
push 0xf001f
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c8]
call fcn.0040eab0
lea edx, [esp + 0x100]
lea eax, [esp + 0xd4]
mov dword [0x42909c], edx
mov dword [0x4290a0], eax
xor edx, edx
lea eax, [esp + 0x84]
lea ecx, [esp + 0x1c4]
mov dword [esp + 0x84], edx
mov ebx, 8
push eax
mov byte [esp + 0x228], 4
mov dword [0x4290a4], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x104]
call fcn.0040caa0
mov eax, dword [esp + 0xbc]
mov byte [esp + 0x224], 5
cmp eax, ebp
je 0x40342f
lea edx, [esp + 0x10]
lea ecx, [esp + 0x100]
push edx
call fcn.00407740
push eax
lea eax, [esp + 0xb8]
push eax
mov byte [esp + 0x22c], 6
call fcn.00406550
add esp, 8
mov dword [esp + 0x10], 0x4211f8
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 7
call fcn.00407c80
mov byte [esp + 0x224], 5
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [0x42909c]
call fcn.00407610
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x224], bl
cmp eax, ebp
jle 0x403472
mov edx, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x78]
call dword [edx + 4]
mov eax, dword [esp + 0x78]
push eax
call fcn.00404f00
mov ecx, dword [0x42909c]
add esp, 4
call fcn.00408310
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [0x42909c]
call fcn.004074e0
mov eax, dword [esp + 0x58]
mov byte [esp + 0x224], 9
cmp eax, ebp
je 0x4034ad
mov edx, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x54]
call dword [edx + 4]
mov eax, dword [esp + 0x54]
mov ecx, 0x429070
push eax
call fcn.0040e740
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [0x42909c]
call fcn.004073b0
mov eax, dword [esp + 0x6c]
mov bl, 0xa
cmp eax, ebp
mov byte [esp + 0x224], bl
je 0x4034e9
mov edx, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x68]
call dword [edx + 4]
mov eax, dword [esp + 0x68]
mov ecx, 0x429070
push eax
call fcn.0040e6d0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x54]
call dword [edx + 4]
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x28]
call fcn.00402800
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 0xb
push ecx
lea ecx, [esp + 0x68]
call fcn.00407c00
xor edx, edx
cmp eax, ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x100]
sete dl
push eax
mov byte [esp + 0x228], bl
mov dword [0x428ff0], edx
mov dword [esp + 0x64], ebp
call fcn.004072b0
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x228], 0xc
call dword [edx + 4]
mov esi, dword [esi + 4]
lea ecx, [esp + 0x60]
push ecx
push 0x4252ac
push esi
call fcn.00412e52
add esp, 0xc
mov dword [esp + 0x10], 0x4211f8
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 0xd
call fcn.00407c80
mov ecx, 6
mov esi, 0x425290
lea edi, [esp + 0x170]
lea edx, [esp + 0x170]
rep movsd dword es:[edi], dword [esi]
push 0x19
push edx
mov byte [esp + 0x22c], bl
movsb byte es:[edi], byte [esi]
call fcn.00405400
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x403615
mov eax, dword [esp + 0x60]
push eax
call fcn.0040d870
add esp, 4
test eax, eax
jne 0x403615
lea ecx, [esp + 0x10]
push 9
push ecx
call fcn.00405a70
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0xe
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
push ecx
push 0x4251ec
push 0x425b00
call fcn.00412212
add esp, 0xc
push 9
call fcn.00412d5f
mov ecx, 5
mov esi, 0x425278
lea edi, [esp + 0x158]
lea edx, [esp + 0x1a8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 6
mov esi, 0x42525c
lea edi, [esp + 0x1a8]
push 0x1b
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 6
mov esi, 0x425240
lea edi, [esp + 0x190]
push edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00405400
mov esi, dword [eax]
lea eax, [esp + 0x194]
push 0x1a
push eax
call fcn.00405400
mov edi, dword [eax]
lea ecx, [esp + 0x168]
push 0x16
push ecx
call fcn.00405400
mov cl, byte [eax]
add esp, 0x18
test cl, cl
je 0x4036e3
push edi
push esi
push eax
call fcn.004051b0
add esp, 0xc
test eax, eax
jne 0x4036e3
lea edx, [esp + 0x10]
push 0xb
push edx
call fcn.00405a70
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0x10
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push eax
push 0x4251ec
push 0x425b00
call fcn.00412212
add esp, 0xc
push 0xb
call fcn.00412d5f
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [0x42909c]
call fcn.00406e70
push 0xffffffffffffffff
push str.true
lea ecx, [esp + 0x28]
mov byte [esp + 0x22c], 0x12
call fcn.00402800
lea edx, [esp + 0x20]
lea ecx, [esp + 0x8c]
push edx
mov byte [esp + 0x228], 0x13
call fcn.00402980
xor ecx, ecx
cmp eax, ebp
sete cl
mov edi, ecx
push 0xffffffffffffffff
push str.handover
lea ecx, [esp + 0x28]
mov byte [esp + 0x22c], 0x12
call fcn.00402800
lea edx, [esp + 0x20]
lea ecx, [esp + 0x8c]
push edx
mov byte [esp + 0x228], 0x14
call fcn.00402980
xor ecx, ecx
cmp eax, ebp
sete cl
test edi, edi
mov byte [esp + 0x224], 0x12
mov ebp, ecx
mov dword [esp + 0x38], 0
jne 0x4037c5
test ebp, ebp
jne 0x4037c5
push 0xffffffffffffffff
push str.custom
lea ecx, [esp + 0x28]
call fcn.00402800
lea edx, [esp + 0x20]
lea ecx, [esp + 0x8c]
push edx
mov byte [esp + 0x228], 0x1c
call fcn.00402980
test eax, eax
mov byte [esp + 0x224], 0x12
jne 0x403971
call fcn.0040fc40
jmp 0x403971
mov ecx, dword [0x42909c]
lea eax, [esp + 0x10]
push eax
call fcn.00406b00
mov edx, dword [esp + 0x18]
mov bl, 0x15
test edx, edx
mov byte [esp + 0x224], bl
jne 0x403842
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x42909c]
call fcn.00407740
mov esi, eax
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0x16
call dword [edx + 4]
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402630
mov dword [esp + 0x20], 0x4211f8
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 0x17
call fcn.00407c80
mov edx, dword [esp + 0x18]
mov byte [esp + 0x224], bl
mov ecx, dword [esp + 0x14]
xor eax, eax
test edx, edx
jle 0x403863
cmp byte [ecx + eax], 0x3a
jne 0x40385e
mov byte [ecx + eax], 0x2e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
cmp eax, edx
jl 0x40384c
xor eax, eax
test edx, edx
jle 0x403880
cmp byte [ecx + eax], 0x5c
jne 0x40387b
mov byte [ecx + eax], 0x2e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc eax
cmp eax, edx
jl 0x403869
push 0xffffffffffffffff
push str..j2e.mutex
lea ecx, [esp + 0x28]
call fcn.00402800
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x228], 0x18
call fcn.004025d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 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 0x4038e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateMutex_error:__d_n
call fcn.00412cf1
add esp, 8
jmp 0x4038ff
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403950
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
mov dword [esp + 0x38], 1
je 0x403950
lea ecx, [esp + 0x20]
push 0xd
push ecx
call fcn.00405a70
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x228], 0x19
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
push ecx
push 0x4251ec
push 0x425b00
call fcn.00412212
add esp, 0xc
push 0xd
call fcn.00412d5f
mov dword [esp + 0x10], 0x4211f8
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 0x1b
call fcn.00407c80
mov byte [esp + 0x224], 0x12
lea edx, [esp + 0x10]
lea ecx, [esp + 0x100]
push edx
call fcn.00406d60
mov bl, 0x1d
push 0xffffffffffffffff
push str.true
lea ecx, [esp + 0x28]
mov byte [esp + 0x22c], bl
call fcn.00402800
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x228], 0x1e
call fcn.00402980
test eax, eax
mov byte [esp + 0x224], bl
mov edi, 0x421224
je 0x403a23
push 0xffffffffffffffff
push str.auto
lea ecx, [esp + 0x28]
call fcn.00402800
lea ecx, [esp + 0x20]
mov byte [esp + 0x224], 0x1f
push ecx
lea ecx, [esp + 0x14]
call fcn.00402980
test eax, eax
mov byte [esp + 0x224], bl
je 0x403a23
push 0xffffffffffffffff
push 0x4251f4
lea ecx, [esp + 0x28]
call fcn.00402800
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x228], 0x20
call fcn.00402980
test eax, eax
mov byte [esp + 0x224], bl
jne 0x403aa2
push 0xffffffffffffffff
push 0x4251f4
lea ecx, [esp + 0x28]
call fcn.00402800
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x228], 0x21
call fcn.00402980
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x22c]
neg eax
sbb eax, eax
mov byte [esp + 0x224], bl
add eax, 2
mov dword [esp + 0x20], edi
push eax
push ecx
push edx
mov ecx, 0x428fb8
call fcn.00410fb0
push 0x428fe0
mov ecx, 0x428fb8
call fcn.00411850
mov eax, dword [0x428fe8]
mov ecx, 0x428fe0
mov esi, eax
push eax
mov eax, dword [0x428fe0]
call dword [eax + 4]
mov ebx, dword [0x428fe4]
jmp 0x403aad
mov esi, dword [esp + 0x22c]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x10], 0x4211f8
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 0x22
call fcn.00407c80
test ebp, ebp
mov byte [esp + 0x224], 0x12
mov dword [esp + 0x10], edi
je 0x403b12
call fcn.0040fc40
mov eax, dword [esp + 0x38]
test eax, eax
je 0x403b12
add ebx, 4
dec esi
push ebx
push esi
call fcn.0040fca0
mov esi, dword [esp + 0x3c]
add esp, 8
test esi, esi
je 0x403b0b
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call fcn.00412d5f
xor edx, edx
lea eax, [esp + 0xc4]
mov dword [esp + 0xa0], edx
dec esi
mov dword [esp + 0xa4], edx
add ebx, 4
mov dword [esp + 0xa8], edx
push eax
mov dword [esp + 0xb0], edx
lea ecx, [esp + 0x104]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], 0x403210
call fcn.00406980
mov eax, dword [esp + 0xcc]
xor ebp, ebp
cmp eax, ebp
mov byte [esp + 0x224], 0x23
jne 0x403b96
lea ecx, [esp + 0x9c]
push ecx
push ebp
push ebp
push fcn.004031a0
call fcn.00406900
add esp, 0x10
jmp 0x403ba3
lea edx, [esp + 0x9c]
push edx
call fcn.004031a0
mov ebx, dword [esp + 0x34]
mov esi, eax
cmp ebx, ebp
mov dword [0x42909c], ebp
mov dword [0x4290a0], ebp
je 0x403bcb
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x4211f8
mov dword [esp + 0xc4], ebx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x224], 0x24
call fcn.00410df0
cmp eax, ebp
je 0x403bf8
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0xc4], edi
mov dword [esp + 0x8c], ebx
lea ecx, [esp + 0x8c]
mov byte [esp + 0x224], 0x25
call fcn.00410df0
cmp eax, ebp
je 0x403c27
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0x8c], edi
mov dword [esp + 0x64], ebx
lea ecx, [esp + 0x64]
mov byte [esp + 0x224], 0x26
call fcn.00410df0
cmp eax, ebp
je 0x403c50
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x224], 0x27
call fcn.00410df0
cmp eax, ebp
je 0x403c76
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x74], ebx
lea ecx, [esp + 0x74]
mov byte [esp + 0x224], 0x28
call fcn.00410df0
cmp eax, ebp
je 0x403c9c
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0x74], edi
mov dword [esp + 0xb4], ebx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x224], 0x29
call fcn.00410df0
cmp eax, ebp
je 0x403cc8
push eax
call fcn.004120fe
add esp, 4
lea ecx, [esp + 0x1c4]
mov dword [esp + 0xb4], edi
mov byte [esp + 0x224], 2
call fcn.0040ebb0
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x224], 0x2a
call fcn.00410df0
cmp eax, ebp
je 0x403d05
push eax
call fcn.004120fe
add esp, 4
mov dword [esp + 0x3c], edi
lea ecx, [esp + 0xd4]
mov byte [esp + 0x224], 0x2c
call fcn.00401140
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x224], 0x2d
call fcn.00407c80
mov dword [esp + 0xe4], edi
mov dword [esp + 0xd4], 0x421200
lea ecx, [esp + 0xd4]
mov byte [esp + 0x224], 0x2e
call fcn.00407c80
lea ecx, [esp + 0x100]
mov dword [esp + 0xd4], 0x421240
mov dword [esp + 0x224], 0xffffffff
call fcn.0040c2f0
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret