Function at 0x4263f7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x984
mov eax, dword [0x46a2c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
xor ebx, ebx
lea eax, [ebp - 0x107]
mov edi, ecx
mov esi, edx
push ebx
push eax
mov dword [ebp - 0x91c], edi
mov dword [ebp - 0x924], esi
mov byte [ebp - 0x108], 0
call fcn.004345b0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x980]
push ebx
push eax
mov eax, edi
mov dword [ebp - 0x90c], ebx
call fcn.004257fc
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x426747
push 0x2000
call fcn.004315fe
pop ecx
mov dword [ebp - 0x920], eax
test eax, eax
jne 0x426486
push 0xffffffffffffff98
pop eax
jmp 0x426747
mov cl, byte [ebp - 0x108]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x918], eax
test cl, cl
je 0x4264c0
cmp cl, 0x2f
je 0x4264a6
cmp cl, 0x5c
jne 0x4264af
lea ecx, [eax + 1]
mov dword [ebp - 0x918], ecx
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x42649c
mov eax, dword [ebp - 0x918]
cmp byte [eax], cl
jne 0x426525
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x908], ax
lea eax, [ebp - 0x906]
push eax
call fcn.004345b0
lea eax, [ebp - 0x108]
add esp, 0xc
push eax
call fcn.004262d8
mov edi, eax
pop ecx
test edi, edi
je 0x42647e
push edi
push esi
push str._s_s
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x908]
push esi
push eax
call fcn.0043258c
push edi
call fcn.004314e1
add esp, 0x1c
lea eax, [ebp - 0x908]
push eax
call fcn.004337f2
jmp 0x426738
push edi
call fcn.00425e3f
pop ecx
test eax, eax
jne 0x4266c5
push 0x7fe
push eax
mov word [ebp - 0x908], ax
lea eax, [ebp - 0x906]
push eax
call fcn.004345b0
lea eax, [ebp - 0x108]
add esp, 0xc
push eax
call fcn.004262d8
mov edi, eax
pop ecx
test edi, edi
je 0x42647e
push edi
push esi
mov ebx, str._s_s
push ebx
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x908]
push esi
push eax
call fcn.0043258c
push edi
call fcn.004314e1
add esp, 0x1c
push 0x45f2f8
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp - 0x90c]
push eax
call fcn.0043379f
add esp, 0xc
cmp dword [ebp - 0x90c], 0
jne 0x4266ce
mov eax, dword [ebp - 0x918]
lea ecx, [ebp - 0x108]
cmp eax, ecx
je 0x42671e
mov cl, byte [eax - 1]
mov byte [eax - 1], 0
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x90d], cl
call fcn.004262d8
pop ecx
mov dword [ebp - 0x914], eax
test eax, eax
je 0x42647e
push dword [ebp - 0x914]
xor eax, eax
push dword [ebp - 0x924]
movzx edx, ax
mov eax, edx
shl edx, 0x10
push ebx
or eax, edx
mov ecx, 0x200
lea edi, [ebp - 0x908]
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x908]
push esi
push eax
call fcn.0043258c
push dword [ebp - 0x914]
call fcn.004314e1
lea eax, [ebp - 0x908]
add esp, 0x1c
push eax
call fcn.00426345
mov al, byte [ebp - 0x90d]
pop ecx
mov ecx, dword [ebp - 0x918]
mov byte [ecx - 1], al
lea eax, [ebp - 0x108]
push eax
call fcn.004262d8
pop ecx
mov dword [ebp - 0x914], eax
test eax, eax
je 0x42647e
push dword [ebp - 0x914]
xor eax, eax
push dword [ebp - 0x924]
movzx edx, ax
mov eax, edx
shl edx, 0x10
push ebx
or eax, edx
mov ecx, 0x200
lea edi, [ebp - 0x908]
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x908]
push esi
push eax
call fcn.0043258c
push dword [ebp - 0x914]
call fcn.004314e1
add esp, 0x1c
push 0x45f2f8
lea eax, [ebp - 0x908]
push eax
lea eax, [ebp - 0x90c]
push eax
call fcn.0043379f
add esp, 0xc
cmp dword [ebp - 0x90c], 0
je 0x42671e
push dword [ebp - 0x920]
mov eax, dword [ebp - 0x91c]
call fcn.00425fdb
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x426705
push dword [ebp - 0x90c]
push 1
push ebx
push dword [ebp - 0x920]
call fcn.00433a11
add esp, 0x10
cmp eax, 1
je 0x4266ce
or ebx, 0xffffffff
cmp dword [ebp - 0x90c], 0
je 0x42671a
push dword [ebp - 0x90c]
call fcn.00433b79
pop ecx
test ebx, ebx
jne 0x42672d
push dword [ebp - 0x91c]
call fcn.00426224
mov ebx, eax
jmp 0x426738
push dword [ebp - 0x91c]
call fcn.00426224
pop ecx
push dword [ebp - 0x920]
call fcn.004314e1
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004312e6
leave
ret