Function at 0x10032630
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d40c
call fcn.100aa1e0
push ebx
push esi
xor eax, eax
xor bl, bl
push edi
push 0x11d8
push eax
mov word [ebp - 7], ax
mov esi, ecx
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 0x1200]
push eax
mov byte [ebp - 8], bl
call fcn.100a1230
add esp, 0xc
mov ecx, esi
call fcn.10032280
test al, al
je 0x1003285f
mov eax, dword [esi + 0x20]
lea edi, [esi + 4]
push edi
call eax
add esp, 4
lea eax, [ebp - 0x18]
push 0
push eax
push 7
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003285f
jmp 0x100326b0
mov eax, dword [ebp - 0x11]
cmp eax, 0x4b00
ja 0x1003285f
push 0
lea ecx, [ebp - 0x24]
add eax, eax
push ecx
push eax
lea eax, [ebp - 0xa808]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003285f
cmp byte [ebp - 0x14], 0
je 0x100326ed
mov dword [edi], 1
xor bl, bl
mov cl, byte [ebp - 0x13]
xor eax, eax
mov dword [esi + 8], eax
mov al, cl
dec al
cmp al, 3
ja 0x1003270e
movzx eax, cl
cmp byte [ebp + eax - 9], 0
je 0x1003270e
movzx eax, cl
mov word [esi + 8], ax
cmp byte [esi + 0x2c], 0
je 0x1003273b
mov cl, byte [ebp - 0x12]
test cl, cl
jne 0x1003271f
xor bl, bl
jmp 0x1003273b
cmp cl, bl
je 0x1003273b
cmp cl, 4
ja 0x1003273b
movzx eax, cl
cmp byte [ebp + eax - 5], 0
je 0x1003273b
movzx eax, cl
mov bl, cl
mov word [esi + 0xa], ax
lea eax, [ebp - 0x1200]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1d408]
push eax
push dword [ebp - 0x11]
lea eax, [ebp - 0xa808]
push eax
mov eax, dword [esi + 0x24]
push edi
call eax
add esp, 0x18
mov dword [ebp - 0x1208], eax
test eax, eax
je 0x10032783
mov dword [ebp - 8], 0
xor bl, bl
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
jmp 0x100327f5
cmp dword [ebp - 0x1200], 1
jne 0x100327f5
mov ecx, dword [ebp - 0x1110]
mov al, cl
shr ecx, 2
and al, 1
and cl, 1
mov byte [ebp - 8], al
mov byte [ebp - 4], cl
mov ecx, dword [ebp - 0xce8]
mov al, cl
shr ecx, 2
and al, 1
and cl, 1
mov byte [ebp - 7], al
mov byte [ebp - 3], cl
mov ecx, dword [ebp - 0x8c0]
mov al, cl
shr ecx, 2
and al, 1
and cl, 1
mov byte [ebp - 6], al
mov byte [ebp - 2], cl
mov ecx, dword [ebp - 0x498]
mov al, cl
shr ecx, 2
and al, 1
and cl, 1
mov byte [ebp - 5], al
mov byte [ebp - 1], cl
test bl, bl
je 0x100327f5
movzx eax, bl
mov al, byte [ebp + eax - 5]
neg al
sbb al, al
and bl, al
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x1204], eax
lea eax, [ebp - 0x1c]
push eax
push 0x11e0
lea eax, [ebp - 0x1208]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003285f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10032842
push 0
lea ecx, [ebp - 0x20]
shl eax, 2
push ecx
push eax
lea eax, [ebp - 0x1d408]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003285f
push 0
lea eax, [ebp - 0x18]
push eax
push 7
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100326b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret