Function at 0x413dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x413e22
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x5a95b0
call fcn.00414080
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x414047
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00413cb0
test eax, eax
jne 0x413e67
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0x5a959c
call fcn.00414080
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x414047
mov dword [ebp - 0xc], 0
jmp 0x413e79
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x20c]
jae 0x413f7c
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax + 0x210]
mov byte [ebp - 0x20], dl
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax + 0x214]
mov byte [ebp - 0x1f], dl
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x224]
mov ax, word [edx + 0xc]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x224]
mov cx, word [eax + 0xe]
mov word [ebp - 0x1a], cx
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
imul edx, eax
cmp edx, 8
jl 0x413f04
mov byte [ebp - 0x1e], 0
jmp 0x413f23
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
mov edx, dword [ebp - 0x1a]
and edx, 0xffff
imul ecx, edx
mov eax, 1
shl eax, cl
mov byte [ebp - 0x1e], al
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x220]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00413d60
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413f6a
xor eax, eax
jmp 0x414047
cmp dword [ebp - 0x10], 0x10
je 0x413f77
xor eax, eax
jmp 0x414047
jmp 0x413e70
mov dword [ebp - 0xc], 0
jmp 0x413f8e
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x20c]
jae 0x41403b
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x224]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x224]
mov dword [eax + 0x14], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
shl edx, 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x220]
push ecx
mov edx, dword [ebp - 0xc]
shl edx, 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x21c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x414007
xor eax, eax
jmp 0x414047
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + eax + 0x220]
je 0x414020
xor eax, eax
jmp 0x414047
mov eax, dword [ebp - 0xc]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0x224]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x14], eax
jmp 0x413f85
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8