Function at 0x402060
Capabilities:
Check mutex on windows
Check os version
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x404690
push ebx
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4020be
push 1
mov ecx, esi
call sub.MFC42.DLL_CDialog::EndDialog
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40465c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call fcn.00401930
test eax, eax
jne 0x4021ec
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::Empty
push 0x404658
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0xac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xb0]
push eax
push ecx
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push 0x40422c
mov dword [ebp - 0xb0], 0x44
mov dword [ebp - 0x84], 1
mov word [ebp - 0x80], bx
call fcn.004012b0
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebp - 0x28]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x18]
push eax
push 0x404378
call fcn.004012b0
add esp, 4
push eax
call fcn.00401b20
add esp, 8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push ebx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x404418
call fcn.004012b0
add esp, 4
push eax
push 0x50
push 0x404404
call fcn.004012b0
add esp, 4
push eax
call fcn.00401bc0
add esp, 0x10
mov ecx, esi
push 1
call sub.MFC42.DLL_CDialog::EndDialog
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00402526
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00402526
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], 2
push 0x6ddd00
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x253]
mov byte [ebp - 0x254], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x404020
stosb byte es:[edi], al
call fcn.004012b0
add esp, 4
lea edx, [ebp - 0x254]
push edx
push eax
call fcn.00401800
add esp, 8
cmp eax, ebx
je 0x4021f9
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, ebx
je 0x40228c
mov eax, dword [ebp - 0x150]
cmp eax, 5
je 0x40228c
jbe 0x40228c
call fcn.00401cd0
cmp eax, 1
je 0x40228c
call fcn.004014a0
cmp eax, 1
je 0x4021f9
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x68]
push 0x404648
rep stosd dword es:[edi], eax
push 0x404638
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], bx
mov dword [ebp - 0x64], 0x404628
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
lea ecx, [ebp - 0xc0]
lea edx, [ebp - 0x6c]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x254]
push ebx
push ecx
push ebx
call eax
jmp 0x4021f9