Function at 0x4282a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4354
call fcn.00554810
mov eax, dword [0x6aab00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x4350], edi
mov dword [ebp - 0x434c], eax
cmp esi, 3
je 0x4282fd
cmp esi, 2
je 0x4283d3
cmp esi, 1
je 0x4283d3
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi + 4]
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x428367
cmp eax, 0xffffffff
je 0x428313
mov ebx, dword [edi]
call fcn.00427990
mov eax, dword [edi]
mov dword [edi + 4], 0xffffffff
cmp esi, dword [eax + 4]
jge 0x4282e5
cmp esi, dword [eax + 0x10]
jge 0x428330
mov esi, eax
call fcn.004272c0
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
cmp dword [ecx + 0x10], esi
jge 0x428348
mov esi, dword [edi]
call fcn.00427300
mov edx, dword [edi]
mov eax, dword [ebp + 8]
cmp dword [edx + 0x10], eax
jl 0x428337
mov ecx, dword [edi + 0x138]
mov edi, dword [edi]
push ecx
call fcn.00427630
mov eax, dword [ebp - 0x4350]
mov edx, dword [ebp + 8]
add esp, 4
mov dword [eax + 4], edx
mov edi, eax
mov ecx, dword [ebp - 0x434c]
mov eax, dword [edi]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.004277a0
mov esi, eax
add esp, 4
test esi, esi
jle 0x428399
mov eax, 0x600
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [edi]
call fcn.00427990
mov dword [edi + 4], 0xffffffff
test esi, esi
je 0x428453
lea eax, [esi + 0x6a]
neg eax
sbb eax, eax
and eax, 0x4fff000
add eax, 0x1000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 4], 0xffffffff
je 0x4283e0
mov ebx, dword [edi]
call fcn.00427990
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov dword [edi + 4], 0xffffffff
cmp ebx, dword [eax + 4]
jge 0x4282e5
cmp ebx, dword [eax + 0x10]
jge 0x428404
mov esi, eax
call fcn.004272c0
mov esi, dword [ebp + 0x14]
mov edx, dword [edi]
cmp dword [edx + 0x10], ebx
jge 0x428421
jmp 0x428410
mov esi, dword [edi]
call fcn.00427300
mov eax, dword [edi]
cmp dword [eax + 0x10], ebx
jl 0x428410
mov esi, dword [ebp + 0x14]
push ebx
lea edx, [ebp - 0x4348]
mov ecx, edi
call fcn.00427c50
test byte [ebp - 0x4240], 0x10
je 0x428468
cmp esi, 1
je 0x428453
lea ecx, [ebp - 0x4344]
push ecx
add edi, 0x13c
push edi
call fcn.004281c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 1
jne 0x428478
mov esi, dword [ebp - 0x434c]
jmp 0x4285ca
lea eax, [edi + 0x13c]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x4354], eax
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x428490
mov eax, dword [ebp - 0x434c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4284a2
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4284b2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 0x110]
lea edx, [ebp - 0x110]
mov ecx, edx
test al, al
je 0x4285a1
cmp al, 0x2f
je 0x4284e8
cmp al, 0x5c
jne 0x4284eb
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4284e0
lea eax, [ebp - 0x110]
cmp edx, eax
je 0x4285a1
xor eax, eax
jmp 0x428510
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x428510
lea ecx, [ebp - 0x110]
sub edx, ecx
mov byte [ebp + edx - 0x219], 0
mov al, byte [ebp - 0x218]
test al, al
je 0x428552
cmp al, 0x2f
je 0x428552
cmp al, 0x5c
je 0x428552
cmp byte [ebp - 0x217], 0x3a
je 0x428552
xor bl, bl
jmp 0x428554
mov bl, 1
lea edx, [ebp - 0x218]
push 0x66cdac
push edx
call fcn.0054dbe0
mov esi, eax
lea eax, [ebp - 0x218]
push 0x66cdb0
push eax
call fcn.0054dbe0
add esp, 0x10
test eax, eax
setne cl
test esi, esi
setne dl
or cl, dl
or cl, bl
jne 0x4285a1
mov ecx, dword [ebp - 0x4354]
lea eax, [ebp - 0x218]
push eax
push ecx
call fcn.004281c0
add esp, 8
mov edx, dword [ebp - 0x4240]
push 0
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp - 0x4350]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4285e7
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 0x138]
mov edi, dword [edi]
push ecx
call fcn.00427630
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
mov dword [ebp - 0x434c], 0
jmp 0x428610
mov edi, dword [ebp - 0x4350]
mov eax, dword [edi]
lea edx, [ebp - 0x4218]
push edx
mov ecx, 0x4000
call fcn.004277a0
add esp, 4
cmp eax, 0xffffff96
je 0x42865b
test eax, eax
js 0x428667
je 0x428673
push 0
lea ecx, [ebp - 0x4354]
push ecx
push eax
lea edx, [ebp - 0x4218]
push edx
push esi
call ebx
test eax, eax
jne 0x428610
mov dword [ebp - 0x434c], 0x400
jmp 0x42868f
mov dword [ebp - 0x434c], 0x1000
jmp 0x42868f
mov dword [ebp - 0x434c], 0x5000000
jmp 0x42868f
lea eax, [ebp - 0x422c]
push eax
lea ecx, [ebp - 0x423c]
push ecx
lea edx, [ebp - 0x4234]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x42869c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi]
call fcn.00427990
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x434c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cec4
mov esp, ebp
pop ebp
ret 0x10