Function at 0x4074bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, 0x4706796
mov eax, esi
xor eax, esi
mov esi, eax
call fcn.0040c770
mov edx, 0xc003000d
push ecx
mov ecx, eax
imul edx
add edx, ecx
sar edx, 0xd
sar ecx, 0x1f
sub edx, ecx
mov eax, edx
pop ecx
mov edx, eax
mov byte [ebp - 0x11], dl
xor esi, 0x475
cmp dword [0x42e684], 0
jne 0x40750c
xor eax, eax
jmp 0x407763
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00406d69
add esp, 8
mov ebx, eax
or eax, eax
je 0x407763
movzx edi, byte [ebp - 0x11]
shl edi, 2
mov edx, dword [edi + 0x42e66c]
sub edx, dword [edi + 0x42e668]
mov edi, edx
dec edi
mov dword [ebp - 0x18], edi
mov eax, 0x3bd0
mul esi
mov dword [ebp - 0x24], eax
mov esi, eax
push edi
movzx edi, byte [ebp - 0x11]
shl edi, 2
push dword [edi + 0x42e668]
mov edi, ebx
add edi, dword [0x42e684]
push edi
call fcn.0040c74c
push 0xc
push 0
mov eax, ebx
add eax, dword [0x42e684]
add eax, dword [ebp - 0x18]
push eax
call fcn.0040c758
add esp, 0x18
mov eax, dword [0x42e688]
mov dword [ebp - 4], eax
jmp 0x4075a2
add esi, 0x5b1b
mov eax, ebx
add eax, dword [ebp - 4]
mov edx, dword [0x42e690]
xor dword [eax], edx
add dword [ebp - 4], 4
mov eax, dword [0x42e688]
add eax, dword [0x42e68c]
cmp dword [ebp - 4], eax
jb 0x40758b
mov eax, dword [0x42e694]
mov dword [ebp - 8], eax
jmp 0x4075d3
mov eax, ebx
add eax, dword [ebp - 8]
mov edx, dword [0x42e69c]
xor dword [eax], edx
sub esi, 0x6e5e
add dword [ebp - 8], 4
mov eax, dword [0x42e694]
add eax, dword [0x42e698]
cmp dword [ebp - 8], eax
jb 0x4075bc
call fcn.0040c770
mov dword [ebp - 0x28], eax
call fcn.0040c770
mov edi, dword [ebp - 0x28]
movzx edi, di
mov edx, eax
movzx edx, dx
shl edx, 0x10
or edi, edx
mov dword [0x42e690], edi
call fcn.0040c770
mov dword [ebp - 0x2c], eax
call fcn.0040c770
mov edi, dword [ebp - 0x2c]
movzx edi, di
mov edx, eax
movzx edx, dx
shl edx, 0x10
or edi, edx
mov dword [0x42e69c], edi
mov eax, esi
xor eax, esi
mov esi, eax
push 0x40
push 0x42e678
mov eax, ebx
add eax, dword [0x42e680]
push eax
call fcn.0040c74c
add esp, 0xc
mov eax, dword [0x42e688]
mov dword [ebp - 0xc], eax
jmp 0x407668
add esi, 0x5e8e
mov eax, ebx
add eax, dword [ebp - 0xc]
mov edx, dword [0x42e690]
xor dword [eax], edx
add dword [ebp - 0xc], 4
mov eax, dword [0x42e688]
add eax, dword [0x42e68c]
cmp dword [ebp - 0xc], eax
jb 0x407651
mov eax, dword [0x42e694]
mov dword [ebp - 0x10], eax
jmp 0x40769c
mov eax, ebx
add eax, dword [ebp - 0x10]
mov edx, dword [0x42e69c]
xor dword [eax], edx
mov eax, esi
mul esi
mov dword [ebp - 0x30], eax
mov esi, eax
add dword [ebp - 0x10], 4
mov eax, dword [0x42e694]
add eax, dword [0x42e698]
cmp dword [ebp - 0x10], eax
jb 0x407682
mov edi, ebx
add edi, dword [0x42e684]
movzx edx, byte [ebp - 0x11]
shl edx, 1
mov edx, dword [edx*4 + 0x42e6a0]
mov ecx, dword [0x42e690]
mov dword [edx + edi], ecx
mov eax, 0x25b9
mul esi
mov dword [ebp - 0x30], eax
mov esi, eax
mov edi, ebx
add edi, dword [0x42e684]
movzx edx, byte [ebp - 0x11]
shl edx, 1
mov edx, dword [edx*4 + str._nz_]
mov ecx, dword [0x42e69c]
mov dword [edx + edi], ecx
cmp byte [ebp - 0x11], 1
jne 0x4076fe
sub dword [ebp - 0x18], 0x18
movzx eax, word [ebp - 0x18]
push eax
mov eax, ebx
add eax, dword [0x42e684]
push eax
call fcn.00407398
add esp, 8
mov eax, esi
xor eax, esi
mov esi, eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.KERN_CreateFileA
mov dword [ebp - 0x1c], eax
sub esi, 0x5e9d
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x1c]
call sub.KERN_WriteFile
push dword [ebp - 0x1c]
call sub.KERN_CloseHandle
sub esi, 0x11d
push ebx
call sub.KERN_LocalFree
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret