Function at 0x408d10
Capabilities:
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x43e044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x3fe
mov esi, edx
push ecx
lea edx, [ebp - 0x40a]
push edx
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x414], eax
mov word [ebp - 0x40c], cx
call fcn.00422210
add esp, 0xc
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [esi + 0x13]
mov eax, dword [esi + 0xb]
mov ecx, dword [esi + 0xf]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], ecx
test edi, edi
je 0x408f80
push edi
call fcn.0041a96c
mov edx, dword [ebp - 0x414]
add esp, 4
push edx
mov ebx, eax
call fcn.0041a96c
add esp, 4
mov dword [ebp - 0x418], eax
test ebx, ebx
jne 0x408de1
mov eax, dword [ebp - 0x410]
push edi
push eax
lea ecx, [ebp - 0x40c]
push 0x435320
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x408e28
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0x410]
push eax
push ecx
lea edx, [ebp - 0x40c]
push 0x435320
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push edi
add esi, 0x17
push esi
push ebx
call fcn.00421660
mov esi, dword [ebp - 0x418]
mov ecx, edi
add esp, 0xc
mov eax, ebx
lea edi, [ebp - 0x414]
mov edx, esi
call fcn.004150c0
mov ecx, dword [ebp - 0x410]
test eax, eax
je 0x408ea0
push eax
push ecx
lea edx, [ebp - 0x40c]
push 0x43535c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call fcn.0041a932
add esp, 4
push esi
call fcn.0041a932
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push 0x435388
push ecx
call fcn.0041aabe
mov edi, eax
add esp, 8
test edi, edi
jne 0x408f09
push ebx
call fcn.0041a932
add esp, 4
push esi
call fcn.0041a932
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x410]
push eax
push edx
lea eax, [ebp - 0x40c]
push str._ls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041a70e
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call fcn.0041b2d4
mov edx, dword [ebp - 0x414]
add esp, 0xc
push edi
push edx
push 1
push esi
call fcn.0041be5e
push edi
call fcn.0041b46b
add esp, 0x14
push ebx
call fcn.0041a932
add esp, 4
push esi
call fcn.0041a932
mov eax, dword [ebp - 0x410]
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408f80
lea ecx, [ebp - 0x420]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041a70e
mov esp, ebp
pop ebp
ret