Function at 0x412d10
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47233d
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x48d000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x400]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x98]
push edx
mov dword [ebp - 0xb0], esi
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041f019
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, eax
call fcn.00401f70
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.0041efff
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 4], 3
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x9c]
cmp dword [eax - 0xc], 0
jge 0x412dd5
push 0x80070057
call fcn.004020c0
movzx ecx, word [0x4905c8]
movzx eax, word [eax]
push ecx
push eax
lea ecx, [ebp - 0xac]
call fcn.0041a000
mov byte [ebp - 4], 5
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x412e53
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x412e3d
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x412e3d
call fcn.00401a40
mov dword [ebp - 0xa4], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x412e2c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, dword [ebp - 0xa4]
add ebx, 0x10
mov dword [ebp - 0xa8], ebx
jmp 0x412e53
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00401e80
mov ebx, dword [ebp - 0xa8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412e79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebx - 0xc], 0
jne 0x412f11
mov ecx, dword [esi + 4]
push 0
push 0x47eaa8
push 0x4807fc
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ebf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412edf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413191
mov ax, word [0x4905c8]
movzx ecx, ax
movzx edx, ax
push ecx
push edx
lea ecx, [ebp - 0xac]
call fcn.0041a000
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00402360
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0xa0]
cmp dword [edi - 0xc], 0
jne 0x412ff7
mov ecx, dword [esi + 4]
push 0
push 0x47eaa8
push 0x480814
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412fa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412fc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413191
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0xa4], edi
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4130d8
mov edx, dword [esi + 4]
push 0
push 0x47eaa0
push 0x480830
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413060
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413086
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413191
mov ecx, dword [ebp - 0xa0]
push ecx
push ebx
push 0x480858
lea edi, [ebp - 0xa4]
call fcn.004019a0
mov edx, dword [ebp - 0xa4]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0xc
push 3
push 0x47eaa0
push edx
push eax
call edi
cmp eax, 6
jne 0x4131c8
mov eax, dword [ebp - 0x9c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0xb4], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov esi, 0x4903a0
call fcn.00416d10
test eax, eax
jne 0x4131af
push 1
push 0x47f748
push str._rY6R
push eax
call edi
cmp eax, 1
jne 0x4131af
mov ecx, dword [ebp - 0xb0]
push 0
push 0
push 2
call fcn.0042803a
lea ecx, [ebp - 0xa4]
call fcn.004020a0
lea ecx, [ebp - 0xa0]
call fcn.004020a0
lea ecx, [ebp - 0xa8]
call fcn.004020a0
lea ecx, [ebp - 0x9c]
call fcn.004020a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454d73
mov esp, ebp
pop ebp
ret
mov esi, 0x4903a0
call fcn.00417a40
push 0
push str.cmd__c_shutdown__r__t_0
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x413219
cmp eax, 7
jne 0x413165
mov eax, dword [ebp - 0x9c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0xb4], esp
mov esi, esp
call fcn.00401a40
add eax, 0x10
mov dword [esi], eax
mov esi, 0x4903a0
call fcn.00416d10
test eax, eax
jne 0x41320f
push 1
push 0x47f748
push str._rY6R
push eax
call edi
cmp eax, 1
je 0x413154
mov esi, 0x4903a0
call fcn.00417a40
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41323f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413191
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413191