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

Disassembly:
mov eax, 0x101e4867
call fcn.10042430
sub esp, 0x180
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1001fe1d
push 0x102
jmp 0x10020331
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x1002032c
cmp word [eax], bx
je 0x1002032c
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.1001fd2f
pop ecx
test eax, eax
pop ecx
je 0x1001fe58
push 2
push ebx
push 0xffffffffffffffe0
jmp 0x1001fe6d
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.10062400
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
call fcn.100203cc
push 0x10000
call fcn.101d42d4
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x1001feb4
push 0x11f
push 9
call fcn.1001fcd6
pop ecx
pop ecx
jmp 0x1002031b
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
jle 0x10020318
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.100218b4
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 0x10020232
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 0x1002023b
cmp dword [ebp - 0x18], edi
jb 0x10020242
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 [0x101fe014]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 4], 2
je 0x10020096
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push eax
call fcn.10020506
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.1005b8a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.1005b6f0
lea ecx, [ebp - 0xac]
call fcn.100e9ee0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.101d3c7f
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.100ea110
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.101d3c0b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.101d3c7f
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 6
call fcn.100ea350
neg eax
sbb al, al
lea ecx, [ebp - 0x48]
inc al
mov byte [ebp - 4], 4
mov byte [ebp + 0xf], al
call fcn.101d3c0b
cmp byte [ebp + 0xf], bl
jne 0x10020252
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 2
call fcn.100ea000
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 0x10020271
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 0x100200a2
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov edi, 0x10000
push edi
push ebx
push dword [ebp - 0x30]
call fcn.10042530
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 0x10020108
cmp dword [ebp - 0x1c], edi
jae 0x100200de
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], 1
je 0x1002012d
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 0x10020111
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jb 0x10020118
cmp dword [ebp - 0x3c], ebx
je 0x100200a2
jmp 0x1002012d
push 0x196
push 7
jmp 0x1002011f
push 0x1a5
jmp 0x1002011d
push 0x1ab
push 8
call fcn.1001fcd6
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 0x10020144
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], ebx
jne 0x100202a2
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.1002034a
push 0x4f
lea eax, [ebp - 0x14c]
push dword [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call fcn.10041ffb
lea eax, [ebp - 0x15c]
push 0x10
push eax
push dword [ebp - 0x10]
call fcn.10082d70
lea eax, [ebp - 0x184]
push 0xd8
push eax
call fcn.1001fdd6
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 0x10020281
cmp dword [ebp - 0x18], edi
jb 0x10020288
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.1005b6f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005b6f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1005b6f0
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x54]
jl 0x1001fec3
jmp 0x100202be
push 0x134
push 3
jmp 0x10020249
push 0x14c
jmp 0x10020247
push 0x151
push 8
call fcn.1001fcd6
pop ecx
pop ecx
jmp 0x100202ae
push 0x16e
push 3
call fcn.1001fcd6
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0xac]
call fcn.100ea000
jmp 0x100202a2
push 0x17f
push 3
call fcn.1001fcd6
pop ecx
pop ecx
jmp 0x100202a2
push 0x1cb
jmp 0x1002028d
push 0x1d0
push 8
call fcn.1001fcd6
pop ecx
mov byte [ebp - 4], 2
pop ecx
lea ecx, [ebp - 0x24]
call fcn.1005b6f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1005b6f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.1005b6f0
cmp dword [ebp - 0x20], ebx
je 0x10020318
lea eax, [ebp - 0x70]
push 0x18
push eax
mov dword [ebp - 0x78], 0x4f504554
call fcn.1001fdd6
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 0x10020301
push 0x1e0
push 8
call fcn.1001fcd6
pop ecx
mov dword [ebp - 0x20], ebx
pop ecx
cmp dword [ebp + 0xc], 0x20
jae 0x10020318
push 0x1e5
push 8
call fcn.1001fcd6
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.10062410
mov eax, ebx
pop edi
jmp 0x1002033c
push pe_nt_image_headers32
push 1
call fcn.1001fcd6
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret