Function at 0x100206b7
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x101e55c7
call fcn.100431e8
sub esp, 0x180
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x100206db
push 0x102
jmp 0x10020bef
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x10020bea
cmp word [eax], bx
je 0x10020bea
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.100205ed
pop ecx
test eax, eax
pop ecx
je 0x10020716
push 2
push ebx
push 0xffffffffffffffe0
jmp 0x1002072b
lea eax, [ebp - 0x64]
mov dword [ebp - 0x70], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push ebx
mov dword [ebp - 0x68], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
lea ecx, [ebp - 0x58]
call fcn.100631e0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
call fcn.10020c8a
push 0x10000
call fcn.101d5034
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x10020772
push 0x11f
push 9
call fcn.10020594
pop ecx
pop ecx
jmp 0x10020bd9
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
jle 0x10020bd6
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.10022172
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x10020af0
push 0x37
xor eax, eax
pop ecx
lea edi, [ebp - 0x188]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x34]
mov dword [ebp - 0x184], eax
xor eax, eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], ebx
push eax
mov dword [ebp - 0x2c], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x18c], 0x4f504946
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, 0xe0
lea eax, [ebp - 0x18c]
push edi
push eax
mov dword [ebp - 0x168], ecx
push dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10020af9
cmp dword [ebp - 0x18], edi
jb 0x10020b00
lea eax, [ebp - 0x178]
push 1
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x178], ebx
call esi
mov dword [ebp - 0x17c], eax
mov eax, dword [0x101ff094]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 4], 2
je 0x10020954
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push eax
call fcn.10020dc4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.1005c680
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1005c4d0
lea ecx, [ebp - 0xac]
call fcn.100ea650
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.101d49df
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.100ea880
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.101d496b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.101d49df
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.100eaac0
neg eax
sbb al, al
lea ecx, [ebp - 0x48]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.101d496b
cmp byte [ebp + 0xf], bl
jne 0x10020b10
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.100ea770
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x10020b2f
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], ecx
jmp 0x10020960
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov edi, 0x10000
push edi
push ebx
push dword [ebp - 0x30]
call fcn.100432f0
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push ebx
push eax
push edi
push dword [ebp - 0x30]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100209c6
cmp dword [ebp - 0x1c], edi
jae 0x1002099c
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], 1
je 0x100209eb
lea eax, [ebp - 0x18]
push ebx
push eax
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100209cf
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x100209d6
cmp dword [ebp - 0x3c], ebx
je 0x10020960
jmp 0x100209eb
push 0x196
push 7
jmp 0x100209dd
push 0x1a5
jmp 0x100209db
push 0x1ab
push 8
call fcn.10020594
pop ecx
mov dword [ebp - 0x2c], 1
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], ebx
je 0x10020a02
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], ebx
jne 0x10020b60
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.10020c08
push 0x4f
lea eax, [ebp - 0x14c]
push dword [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.10042db3
lea eax, [ebp - 0x15c]
push 0x10
push eax
push dword [ebp - 0x10]
call fcn.100834e0
lea eax, [ebp - 0x184]
push 0xd8
push eax
call fcn.10020694
add esp, 0x28
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x178]
push ebx
push eax
push dword [ebp - 0x17c]
push dword [ebp + 8]
call esi
push 1
push ebx
push 0xffffff20
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x18]
push ebx
push eax
mov edi, 0xe0
lea eax, [ebp - 0x18c]
push edi
push eax
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10020b3f
cmp dword [ebp - 0x18], edi
jb 0x10020b46
inc dword [ebp - 0x6c]
push 2
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], 1
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.1005c4d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005c4d0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1005c4d0
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x54]
jl 0x10020781
jmp 0x10020b7c
push 0x134
push 3
jmp 0x10020b07
push 0x14c
jmp 0x10020b05
push 0x151
push 8
call fcn.10020594
pop ecx
pop ecx
jmp 0x10020b6c
push 0x16e
push 3
call fcn.10020594
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xac]
call fcn.100ea770
jmp 0x10020b60
push 0x17f
push 3
call fcn.10020594
pop ecx
pop ecx
jmp 0x10020b60
push 0x1cb
jmp 0x10020b4b
push 0x1d0
push 8
call fcn.10020594
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0x24]
call fcn.1005c4d0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005c4d0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1005c4d0
cmp dword [ebp - 0x20], ebx
je 0x10020bd6
lea eax, [ebp - 0x70]
push 0x18
push eax
mov dword [ebp - 0x78], 0x4f504554
call fcn.10020694
pop ecx
mov dword [ebp - 0x74], eax
pop ecx
lea eax, [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0x78]
push 0x20
push eax
mov dword [ebp + 0xc], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10020bbf
push 0x1e0
push 8
call fcn.10020594
pop ecx
mov dword [ebp - 0x20], ebx
pop ecx
cmp dword [ebp + 0xc], 0x20
jae 0x10020bd6
push 0x1e5
push 8
call fcn.10020594
pop ecx
mov dword [ebp - 0x20], ebx
pop ecx
mov ebx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.100631f0
mov eax, ebx
pop edi
jmp 0x10020bfa
push 0x108
push 1
call fcn.10020594
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret