Function at 0x403a53
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
push ebx
push esi
push edi
push 0x44
pop esi
xor edi, edi
push esi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00413e50
mov ax, word [ebp + 0x14]
add esp, 0xc
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], ax
je 0x403c79
cmp dword [ebp + 0xc], edi
je 0x403c79
lea eax, [ebp - 0x15c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x15c]
push eax
push edi
lea eax, [ebp - 0x15c]
push 0x41d308
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x15c]
push eax
call fcn.00413d9e
lea eax, [ebp - 0x15c]
push 0x2e
push eax
call fcn.00413b80
add esp, 0xc
cmp eax, edi
je 0x403ae6
and byte [eax], 0
mov edi, str..bat
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.00413bc0
push 0x180
lea eax, [ebp - 0x15c]
push 0x8321
push eax
call fcn.004133bd
add esp, 0x14
cmp eax, 0xffffffff
je 0x403cad
push eax
call fcn.00413a30
mov esi, dword [sym.imp.KERNEL32.dll__lopen]
pop ecx
lea eax, [ebp - 0x15c]
push 2
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
je 0x403cad
mov ebx, dword [ebp + 8]
push ebx
call fcn.00413dd0
cmp eax, 3
pop ecx
jle 0x403c24
lea eax, [eax + ebx - 4]
push edi
push eax
call fcn.0041a1a0
pop ecx
test eax, eax
pop ecx
jne 0x403c24
push eax
push ebx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403b8c
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x15c]
push eax
call fcn.00413d9e
pop ecx
jmp 0x403cad
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x403bbf
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
call esi
lea eax, [ebp - 0x15c]
push eax
call fcn.00413d9e
pop ecx
push ebx
call esi
jmp 0x403cad
push 0
push 0
push ebx
call esi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 8], eax
je 0x403c12
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x403c09
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, edi
jne 0x403c09
push edi
push esi
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
call esi
push 7
push str._r_ncls_r_n
push dword [ebp + 0x14]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x403c57
push ebx
lea eax, [ebp - 0x544]
push str._echo_off_r_n_s_r_ncls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x544]
push eax
call fcn.00413dd0
add esp, 0x10
push eax
lea eax, [ebp - 0x544]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll__lwrite]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x544]
push eax
call fcn.00413bb0
pop ecx
xor edi, edi
pop ecx
jmp 0x403c8a
push dword [ebp + 8]
lea eax, [ebp - 0x544]
push eax
call fcn.00413bb0
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x544]
push dword [ebp + 0x18]
push edi
push edi
push 1
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403cb1
xor eax, eax
jmp 0x403d03
cmp dword [ebp + 0xc], edi
je 0x403d00
cmp dword [0x420d28], edi
je 0x403cc3
call fcn.004039c7
push 0x1770
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x403cb6
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0x103
je 0x403cb6
cmp dword [ebp + 0x10], edi
je 0x403d00
lea eax, [ebp - 0x544]
push eax
call fcn.00413d9e
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret