Function at 0x403230
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Hide graphical window
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4477df
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 4]
cmp eax, 0x100
jne 0x40326e
cmp dword [ebp + 8], 0x1b
jne 0x403a8e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x531
jne 0x4032ca
cmp dword [esi + 0x8c], 4
je 0x403288
mov eax, 1
jmp 0x403a93
push 0x20c
call fcn.0043c870
mov edx, eax
xor ebx, ebx
add esp, 4
cmp edx, ebx
je 0x4032af
mov ecx, 0x82
xor eax, eax
lea edi, [edx + 4]
mov dword [edx], ebx
rep stosd dword es:[edi], eax
mov eax, edx
jmp 0x4032b1
xor eax, eax
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [eax], ecx
push eax
push 0x468
lea ecx, [esi + 0x24]
call fcn.0040f690
jmp 0x403a8e
cmp eax, 0x534
jne 0x4032f7
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 4]
push 0
push 0x3e8
push 0x3eb
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x403a8e
cmp eax, 0x496
jne 0x40348c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esi + 0x24]
call fcn.0040f030
mov eax, dword [esi + 0x448]
xor ebx, ebx
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x40333e
mov ecx, dword [eax + 8]
mov eax, 0xb60b60b7
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x40335e
mov ecx, dword [0x456b00]
mov eax, 1
cmp ecx, eax
jne 0x403a93
push ebx
mov ecx, esi
call fcn.00403ff0
jmp 0x403a8e
mov eax, dword [0x456b00]
mov edi, 2
cmp eax, edi
jne 0x403443
mov ecx, esi
call fcn.00404810
test al, al
je 0x403443
mov dword [0x456b00], 3
mov dword [esi + 0x8c], edi
mov eax, dword [0x456b00]
cmp eax, edi
jne 0x403457
mov cl, byte [0x457fd0]
push ebx
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push eax
push ebx
push 0x457fd0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov cl, byte [0x457fc0]
push ebx
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [esp + 0x10]
mov eax, dword [edx]
push eax
push ebx
push 0x457fc0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [esp + 0x14]
push 0x64
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x7c], 1
call fcn.004043f0
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x403a8e
cmp dword [0x456b00], 5
jne 0x403389
xor eax, eax
jmp 0x403a93
cmp eax, 1
jne 0x403468
mov ecx, esi
call fcn.00404030
jmp 0x403a8e
cmp eax, 3
je 0x403476
cmp eax, 4
jne 0x403a8e
mov ecx, dword [esi + 4]
push ebx
push ebx
push 0x497
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x403a8e
cmp eax, 0x592
jne 0x4035bc
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x4034a4
mov dword [0x456b00], eax
mov edx, dword [esi + 0x28]
xor ebx, ebx
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x8c]
mov edi, 2
cmp eax, edi
jne 0x4034d8
mov eax, dword [esi + 4]
push ebx
push ebx
push 0x497
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
jmp 0x403a93
mov cl, byte [0x457fd0]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0x30], cl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [edx]
lea ecx, [esp + 0x30]
push eax
push ebx
push 0x457fd0
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov cl, byte [0x457fc0]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0x10], cl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [edx]
lea ecx, [esp + 0x10]
push eax
push ebx
push 0x457fc0
mov dword [esp + 0x74], edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [esp + 0x14]
push 0x64
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x7c], 3
call fcn.004043f0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x40357e
mov al, byte [ecx - 1]
cmp al, bl
je 0x403572
cmp al, 0xff
je 0x403572
dec al
mov byte [ecx - 1], al
jmp 0x40357e
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x4035b5
mov al, byte [ecx - 1]
cmp al, bl
je 0x4035a9
cmp al, 0xff
je 0x4035a9
dec al
mov byte [ecx - 1], al
mov eax, edi
jmp 0x403a93
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov eax, edi
jmp 0x403a93
cmp eax, 0x497
jne 0x4035fb
mov dword [esi + 0x8c], 3
mov ecx, dword [0x456b00]
add esi, 0x24
push 0
push ecx
mov ecx, esi
call fcn.0040f150
cmp dword [0x456b00], 1
jne 0x40367a
push 1
mov ecx, esi
call fcn.0040e1e0
jmp 0x403a8e
cmp eax, 0x593
jne 0x40360a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x498
jne 0x4036e5
mov ecx, esi
mov dword [esi + 0x8c], 4
call fcn.00404560
mov eax, dword [0x45826c]
xor ebx, ebx
cmp eax, ebx
jne 0x403636
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4036b0
cmp eax, 5
je 0x4036b0
cmp edi, ebx
je 0x4036b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0x24
push 4
mov ecx, esi
call fcn.0040f630
mov eax, dword [0x456b00]
cmp eax, 1
je 0x403686
cmp eax, 4
je 0x403686
mov ecx, esi
call fcn.0040f650
jmp 0x403a8e
cmp dword [0x45823c], ebx
jne 0x40367a
push 1
mov ecx, esi
call fcn.0040e1e0
cmp dword [0x456b00], 1
jne 0x403a8e
mov ecx, esi
call fcn.0040f650
jmp 0x403a8e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x456b00]
cmp eax, 1
jne 0x4036ce
lea ecx, [esi + 0x24]
call fcn.0040ea80
jmp 0x403a8e
add esi, 0x24
push eax
mov ecx, esi
call fcn.0040f630
mov ecx, esi
call fcn.0040f650
jmp 0x403a8e
cmp eax, 0x49b
jne 0x40370d
add esi, 0x24
push 4
mov ecx, esi
call fcn.0040f630
push 1
mov ecx, esi
call fcn.0040e1e0
mov ecx, esi
call fcn.0040f650
jmp 0x403a8e
cmp eax, 0x499
jne 0x40375e
mov eax, dword [0x456b00]
cmp eax, 4
je 0x403738
cmp eax, 1
je 0x403738
cmp eax, 2
je 0x403731
cmp eax, 3
jne 0x403a8e
xor eax, eax
jmp 0x403a93
mov edx, dword [esi + 0x28]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00403b00
mov ecx, esi
call fcn.004041a0
call fcn.0043bbe0
xor eax, eax
jmp 0x403a93
cmp eax, 0x4c8
jne 0x403781
cmp dword [0x456b00], 4
jne 0x403775
mov ecx, esi
call fcn.004041a0
mov ecx, esi
call fcn.00403db0
jmp 0x403a93
cmp eax, 0x52e
jne 0x403909
mov al, byte [esp + 0x70]
xor ebx, ebx
push 0x457dd4
mov byte [esp + 0x44], al
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x40]
push eax
push 0x457dd4
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [esp + 0x40]
mov dword [esp + 0x68], 4
push ecx
call fcn.0043a9a0
mov dl, byte [esp + 0x74]
add esp, 4
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp ecx, ebx
mov byte [esp + 0x68], 5
jne 0x4037fe
mov ecx, edx
mov eax, dword [0x4580d4]
cmp eax, ebx
jne 0x403809
mov eax, edx
push ecx
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00425f80
add esp, 0xc
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0x68], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x20]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x54]
cmp ecx, ebx
je 0x403858
mov al, byte [ecx - 1]
cmp al, bl
je 0x40384c
cmp al, 0xff
je 0x40384c
dec al
mov byte [ecx - 1], al
jmp 0x403858
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [0x4581f4]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp ecx, ebx
jne 0x40386a
mov ecx, edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x403874
mov eax, edx
push 0x40004
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
cmp eax, 6
push ebx
push ebx
jne 0x403899
push 0x52f
jmp 0x40389e
push 0x530
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4038cb
mov al, byte [ecx - 1]
cmp al, bl
je 0x4038bf
cmp al, 0xff
je 0x4038bf
dec al
mov byte [ecx - 1], al
jmp 0x4038cb
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], ebx
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x403a8e
mov al, byte [ecx - 1]
cmp al, bl
je 0x4038f8
cmp al, 0xff
je 0x4038f8
dec al
mov byte [ecx - 1], al
jmp 0x403a8e
add ecx, 0xfffffffe
push ecx
call fcn.0043c8a0
add esp, 4
jmp 0x403a8e
cmp eax, 0x591
jne 0x403a82
mov eax, dword [0x45829c]
xor ebx, ebx
cmp eax, ebx
jne 0x403924
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403a7e
mov al, byte [0x458068]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x80], esp
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov eax, dword [0x458070]
mov edi, eax
mov ebp, dword [ecx]
cmp ebp, edi
jae 0x403964
mov edi, ebp
cmp esi, 0x458068
jne 0x4039d9
cmp edi, ebx
jbe 0x403976
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Split_void_]
mov eax, dword [esi + 8]
sub eax, edi
cmp eax, ebp
jae 0x403989
mov ebp, eax
cmp ebp, ebx
jbe 0x4039c2
mov ecx, dword [esi + 4]
sub eax, ebp
lea edx, [edi + ebp]
push eax
lea eax, [ecx + edx*2]
lea ecx, [ecx + edi*2]
push eax
push ecx
call fcn.00403ab0
mov edi, dword [esi + 8]
add esp, 0xc
sub edi, ebp
mov ecx, esi
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x4039c2
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Split_void_]
call fcn.00426d00
add esp, 0x10
xor eax, eax
jmp 0x403a93
cmp edi, ebx
jbe 0x403a35
cmp edi, eax
jne 0x403a35
mov eax, dword [0x45806c]
cmp eax, ebx
jne 0x4039ef
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp byte [eax - 1], 0xfe
jae 0x403a35
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x45806c]
cmp eax, ebx
jne 0x403a0c
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov dword [esi + 4], eax
mov edx, dword [0x458070]
mov dword [esi + 8], edx
mov ecx, dword [0x458074]
mov dword [esi + 0xc], ecx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
call fcn.00426d00
add esp, 0x10
xor eax, eax
jmp 0x403a93
push 1
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x403a76
mov ecx, dword [0x45806c]
cmp ecx, ebx
jne 0x403a54
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov eax, dword [esi + 4]
cmp edi, ebx
jbe 0x403a6c
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x403a5d
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
mov word [edx + edi*2], bx
call fcn.00426d00
add esp, 0x10
xor eax, eax
jmp 0x403a93
cmp eax, 0x590
mov eax, 1
je 0x403a93
mov eax, 2
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 4