Function at 0x41a5ac
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
push 0x79
xor ebx, ebx
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0041869b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x35], eax
mov al, byte [esp + 0xdc]
mov byte [esp + 0x34], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x39], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x3d], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x41], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xa9], eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0xd0]
push 0x32
pop esi
test ecx, ecx
je 0x41a63a
call fcn.004192d2
test eax, eax
je 0x41a63a
inc eax
mov edx, ecx
cmp eax, esi
lea ecx, [esp + 0x45]
cmova eax, esi
push eax
call fcn.00418a70
mov ecx, dword [esp + 0xd4]
test ecx, ecx
je 0x41a66a
call fcn.004192d2
mov dword [esp + 0x14], eax
test eax, eax
je 0x41a66e
inc eax
mov edx, ecx
cmp eax, esi
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x77]
cmova eax, esi
push eax
call fcn.00418a70
jmp 0x41a66e
mov dword [esp + 0x14], ebx
mov ecx, 0x1000
mov byte [esp + 0x13], bl
call fcn.004185cd
push 0x1b
mov esi, eax
lea eax, [esp + 0xb4]
push 0x4064d4
push eax
call fcn.0041863c
mov dword [esp + 0x18], eax
push 0x1a
pop ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
test esi, esi
je 0x41a75e
mov al, byte [esp + 0xdc]
cmp al, 3
jae 0x41a6c0
movzx eax, al
mov eax, dword [eax*4 + 0x407074]
jmp 0x41a6c5
mov eax, 0x4061b0
push eax
push dword [esp + 0xad]
lea eax, [esp + 0x7f]
push eax
lea eax, [esp + 0x51]
push eax
push dword [esp + 0x45]
movzx eax, word [esp + 0x44]
push dword [esp + 0x49]
push dword [esp + 0x55]
push dword [esp + 0x59]
push dword [esp + 0x59]
push dword [esp + 0x5d]
push dword [esp + 0x69]
push eax
movzx eax, word [esp + 0x5e]
push eax
movzx eax, word [esp + 0x60]
push eax
push 0x4064f0
push 0xfa
push esi
call fcn.004194ac
mov edi, eax
add esp, 0x44
test edi, edi
jle 0x41a757
lea eax, [esp + 0xe4]
mov edx, 0x800
push eax
push dword [esp + 0xe4]
sub edx, edi
lea ecx, [esi + edi*2]
call fcn.0041950b
test eax, eax
jle 0x41a757
lea ecx, [esp + 0x18]
push ecx
lea edx, [eax + edi]
mov ecx, esi
call fcn.00419667
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x13], al
mov ecx, esi
call fcn.00418601
xor eax, eax
mov ecx, 0x42b068
cmp byte [0x4299fd], al
mov edx, 0x4065b8
cmove ecx, eax
call fcn.0041c489
mov ebp, eax
test ebp, ebp
je 0x41a7cf
call fcn.0041a468
mov edi, eax
cmp edi, 0xffffffff
je 0x41a7c8
push 2
xor esi, esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41a7c1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x18]
push eax
push ebx
push dword [esp + 0x24]
push edi
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
push 0x4047e8
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.0041c519
cmp byte [esp + 0x13], 0
pop edi
pop esi
pop ebp
pop ebx
je 0x41a7e3
lea ecx, [esp + 8]
call fcn.00419651
push dword [esp + 0x25]
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0xbc
ret