Function at 0x4043e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [0x40966c]
mov dword [ebp - 0x18], eax
mov ax, word [0x409670]
mov word [ebp - 0x1a], ax
mov si, word [0x409684]
mov eax, dword [ebp - 0xc]
mov ax, word [eax*2 + 0x40815c]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 8]
mov ax, word [eax*2 + 0x40815c]
mov word [ebp - 0x12], ax
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov ax, word [ebp - 0xc]
call fcn.00403d14
mov edi, dword [ebp - 4]
mov edi, dword [edi]
mov ax, word [ebp - 0x18]
and ax, word [ebp - 0x10]
movzx eax, ax
shl eax, 3
add edi, eax
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0x3e8
jne 0x40446c
xor eax, eax
mov dword [ebp - 0x24], eax
call fcn.004079e8
movsx ebx, byte [edi]
cmp bx, 0x10
jbe 0x4044cc
cmp bx, 0x10
jbe 0x4044cc
cmp bx, 0x63
jne 0x40448b
mov eax, 1
jmp 0x404726
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
movsx eax, byte [edi + 1]
call fcn.00403d38
sub bx, 0x10
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403d14
mov eax, dword [edi + 4]
movzx edx, bx
movzx edx, word [edx*2 + 0x40815c]
and edx, dword [ebp - 0x18]
shl edx, 3
add eax, edx
mov edi, eax
movsx ebx, byte [edi]
cmp bx, 0x10
ja 0x40447b
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
movsx eax, byte [edi + 1]
call fcn.00403d38
cmp bx, 0x10
jne 0x40453c
movzx eax, si
mov edx, dword [0x409678]
mov cl, byte [edi + 2]
mov byte [edx + eax], cl
inc esi
cmp si, 0x8000
jne 0x404432
push 0
lea eax, [ebp - 0x20]
push eax
movzx eax, si
push eax
mov eax, dword [0x409678]
push eax
mov eax, dword [0x408260]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0x20]
add dword [0x409694], eax
mov ecx, dword [0x408244]
movzx edx, si
mov eax, dword [0x409678]
call fcn.0040741c
xor esi, esi
jmp 0x404432
cmp bx, 0xf
je 0x40470b
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403d14
mov ax, word [edi + 2]
movzx edx, bx
mov dx, word [edx*2 + 0x40815c]
and dx, word [ebp - 0x18]
add ax, dx
mov word [ebp - 0xe], ax
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403d38
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov ax, word [ebp + 8]
call fcn.00403d14
mov edi, dword [ebp - 8]
mov edi, dword [edi]
movzx eax, word [ebp - 0x12]
and eax, dword [ebp - 0x18]
shl eax, 3
add edi, eax
movsx ebx, byte [edi]
cmp bx, 0x10
jbe 0x4045f8
cmp bx, 0x63
jne 0x4045b3
mov eax, 1
jmp 0x404726
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
movsx eax, byte [edi + 1]
call fcn.00403d38
sub bx, 0x10
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403d14
mov eax, dword [edi + 4]
movzx edx, bx
mov dx, word [edx*2 + 0x40815c]
and dx, word [ebp - 0x18]
movzx edx, dx
shl edx, 3
add eax, edx
mov edi, eax
movsx ebx, byte [edi]
cmp bx, 0x10
ja 0x4045a3
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
movsx eax, byte [edi + 1]
call fcn.00403d38
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403d14
mov eax, esi
sub ax, word [edi + 2]
movzx edx, bx
mov dx, word [edx*2 + 0x40815c]
and dx, word [ebp - 0x18]
sub ax, dx
mov edi, eax
lea ecx, [ebp - 0x1a]
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00403d38
and di, 0x7fff
cmp si, di
jae 0x40464e
mov bx, 0x8000
sub bx, di
jmp 0x404655
mov bx, 0x8000
sub bx, si
cmp bx, word [ebp - 0xe]
jbe 0x40465f
mov bx, word [ebp - 0xe]
sub word [ebp - 0xe], bx
movzx edx, si
movzx eax, di
sub edx, eax
movzx ecx, bx
cmp edx, ecx
jl 0x404699
movzx edx, si
mov ecx, dword [0x409678]
lea edx, [ecx + edx]
push edx
mov edx, dword [0x409678]
lea eax, [edx + eax]
movzx ecx, bx
pop edx
call fcn.004025b4
add si, bx
add di, bx
jmp 0x4046b9
movzx eax, di
mov edx, dword [0x409678]
mov al, byte [edx + eax]
movzx edx, si
mov ecx, dword [0x409678]
mov byte [ecx + edx], al
inc esi
inc edi
dec ebx
test bx, bx
ja 0x404699
cmp si, 0x8000
jne 0x4046fb
push 0
lea eax, [ebp - 0x20]
push eax
movzx eax, si
push eax
mov eax, dword [0x409678]
push eax
mov eax, dword [0x408260]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [ebp - 0x20]
add dword [0x409694], eax
mov ecx, dword [0x408244]
movzx edx, si
mov eax, dword [0x409678]
call fcn.0040741c
xor esi, esi
cmp word [ebp - 0xe], 0
jne 0x40463b
jmp 0x404432
mov word [0x409684], si
mov eax, dword [ebp - 0x18]
mov dword [0x40966c], eax
mov ax, word [ebp - 0x1a]
mov word [0x409670], ax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4