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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x441044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x3fe
push eax
lea ecx, [ebp - 0x40a]
push ecx
mov dword [ebp - 0x414], esi
mov edi, edx
mov word [ebp - 0x40c], ax
call fcn.004238b0
add esp, 0xc
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 0x13]
mov edx, dword [edi + 0xb]
mov eax, dword [edi + 0xf]
add ebx, ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x41c], eax
test esi, esi
je 0x408fe0
push esi
call fcn.0041bf3c
add esp, 4
push ebx
mov dword [ebp - 0x410], eax
call fcn.0041bf3c
mov ebx, eax
mov eax, dword [ebp - 0x410]
add esp, 4
test eax, eax
jne 0x408e63
mov ecx, dword [ebp - 0x414]
push esi
push ecx
push 0x4373e8
lea edx, [ebp - 0x40c]
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.0041bcde
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x408ea7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x414]
push ecx
push edx
lea eax, [ebp - 0x40c]
push 0x4373e8
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.0041bcde
mov esp, ebp
pop ebp
ret
push esi
add edi, 0x17
push edi
push eax
call fcn.00422d00
mov eax, dword [ebp - 0x410]
add esp, 0xc
mov ecx, esi
lea edi, [ebp - 0x418]
mov edx, ebx
call fcn.00416690
test eax, eax
je 0x408f28
mov edx, dword [ebp + 8]
push esi
push edx
push eax
mov eax, dword [ebp - 0x414]
push eax
lea ecx, [ebp - 0x40c]
push 0x437428
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea edx, [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x410]
push eax
call fcn.0041bf02
add esp, 4
push ebx
call fcn.0041bf02
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bcde
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x414]
push 0x4374a0
push edi
call fcn.0041c08e
mov esi, eax
add esp, 8
test esi, esi
jne 0x408f6c
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.0041bf02
add esp, 4
push ebx
call fcn.0041bf02
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._ls_r_n
jmp 0x408e33
push 0
push 0
push esi
call fcn.0041c8a4
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push ecx
push 1
push ebx
call fcn.0041d42e
push esi
call fcn.0041ca3b
mov edx, dword [ebp - 0x410]
add esp, 0x14
push edx
call fcn.0041bf02
add esp, 4
push ebx
call fcn.0041bf02
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408fe0
lea eax, [ebp - 0x420]
push eax
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.0041bcde
mov esp, ebp
pop ebp
ret