Function at 0x10028ad8
Capabilities:
Write file on windows

Disassembly:
in al, dx
xor byte [ecx + 0x10045070], ah
push eax
add al, 0x10
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
test ecx, ecx
jne 0x10028b00
xor eax, eax
jmp 0x10050bce
test edi, edi
jne 0x10028b23
call 0x10049a2d
and dword [eax], edi
call 0x10049a47
mov dword [eax], 0x16
call 0x10043c61
or eax, 0xffffffff
jmp 0x10050bf1
push ebx
mov eax, esi
mov ebx, esi
sar ebx, 6
and eax, 0x3f
imul edx, eax, 0x30
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx*4 + 0x10046a38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], edx
mov bl, byte [eax + edx + 0x29]
cmp bl, 2
je 0x10028b4f
cmp bl, 1
jne 0x10028b77
mov eax, ecx
not eax
test al, 1
jne 0x10028b74
call 0x10049a80
and dword [eax], 0
call 0x10049a9b
mov dword [eax], 0x16
call 0x10043cb5
jmp 0x10050c39
mov eax, dword [ebp - 0x2c]
test byte [eax + edx + 0x28], 0x20
je 0x10028b8d
push 2
push 0
push 0
push esi
call 0x10052119
add esp, 0x10
push esi
call 0x1005060a
pop ecx
test al, al
je 0x10028bd1
test bl, bl
je 0x10028bbe
dec bl
cmp bl, 1
ja 0x10028c95
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
push eax
call 0x100505be
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax*4 + 0x10046a38]
mov eax, dword [ebp - 0x18]
test byte [ecx + eax + 0x28], 0x80
je 0x10028c2b
movsx eax, bl
sub eax, 0
je 0x10028c1b
sub eax, 1
je 0x10028c0b
sub eax, 1
jne 0x10028c95
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
push esi
push eax
call 0x100507d5
jmp fcn.10028bcc
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
push esi
push eax
call 0x100508d3
jmp fcn.10028bcc
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
push esi
push eax
call 0x10050716
jmp fcn.10028bcc
mov eax, dword [ecx + eax + 0x18]
xor ecx, ecx
push ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10028c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10028cca
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10028c92
push 5
pop esi
cmp eax, esi
jne 0x10028c89
call 0x10049bb1
mov dword [eax], 9
add byte [ecx], cl
add byte [eax], al
add al, ch
and al, 0xf
add al, byte [eax]
mov dword [eax], esi
jmp 0x10028cc5
push eax
call 0x10049b90
pop ecx
jmp 0x10028cc5
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax*4 + 0x10046a38]
test byte [eax + ecx + 0x28], 0x40
je 0x10028cb2
cmp byte [edi], 0x1a
jne 0x10028cb2
xor eax, eax
jmp 0x10028ccd
call 0x10049bee
mov dword [eax], 0x1c
call 0x10049be6
and dword [eax], 0
or eax, 0xffffffff
jmp 0x10028ccd
sub eax, dword [ebp - 0x20]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call 0x1003e478
mov esp, ebp
pop ebp
ret