Function at 0x100129a0
Capabilities:
Delete file
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x82b4
call fcn.10037d10
mov eax, dword [0x100505e4]
xor eax, esp
mov dword [esp + 0x82b0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x38
xor ebx, ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edi
call fcn.1002a240
add esp, 0xc
mov eax, str.1.2.3
lea ecx, [esp + 0x38]
call fcn.1001d5a0
test eax, eax
jne 0x10012a57
cmp edi, ebx
je 0x10012a0a
call fcn.10015cf0
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x10012a57
mov edx, dword [esp + 0x28]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edx
call esi
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x10012a70
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x82b0]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 0x10
push 0x3fff
lea ecx, [esp + 0x42bd]
push ebx
push ecx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x42c4], bl
call fcn.1002a240
add esp, 0xc
push 0x3fff
lea edx, [esp + 0x2bd]
push ebx
push edx
mov byte [esp + 0x2c4], bl
call fcn.1002a240
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], 1
call fcn.10014480
lea ecx, [esp + 0x70]
call fcn.10015600
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x34]
push ecx
push 0x4000
lea edx, [esp + 0x42c4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012dc9
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10012cc9
push eax
lea ecx, [esp + 0x42bc]
push ecx
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x1f], bl
call fcn.10015a40
test eax, eax
je 0x10012c1e
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10014c10
test eax, eax
je 0x10012bbf
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x38]
lea edx, [esp + 0x2b8]
push 2
mov esi, 0x4000
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edx
call fcn.1001d730
add esp, 8
cmp eax, 0xfffffffc
jl 0x10012b89
cmp eax, 0xfffffffd
jle 0x10012c31
cmp eax, 2
je 0x10012c31
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x30]
push ecx
sub esi, edi
push esi
lea edx, [esp + 0x2c4]
push edx
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x2c], esi
jne 0x10012c94
cmp edi, ebx
je 0x10012b4f
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x10012bcd
mov ecx, dword [esp + 0x30]
add dword [edi + 8], ecx
adc dword [edi + 0xc], ebx
cmp dword [esp + 0x1c], ebx
je 0x10012bf3
mov edx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
jne 0x10012bf3
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x34]
push eax
push 0x4000
lea ecx, [esp + 0x42c4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012af3
jmp 0x10012cd3
lea esi, [esp + 0x38]
mov byte [esp + 0x12], 1
call fcn.1001ec30
jmp 0x10012dc9
lea esi, [esp + 0x38]
call fcn.1001ec30
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], ebx
je 0x10012c72
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea esi, [esp + 0x70]
call fcn.10014570
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x82b0]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x38]
call fcn.1001ec30
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], ebx
je 0x10012c72
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x10012c64
cmp byte [esp + 0x13], bl
jne 0x10012dc9
lea eax, [esp + 0x70]
call fcn.10015bd0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10014c10
test eax, eax
je 0x10012dbb
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
lea ecx, [ecx]
lea edx, [esp + 0x38]
lea ecx, [esp + 0x2b8]
push 2
mov esi, 0x4000
push edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ecx
call fcn.1001d730
add esp, 8
cmp eax, 0xfffffffc
jl 0x10012d42
cmp eax, 0xfffffffd
jle 0x10012d85
cmp eax, 2
je 0x10012d85
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push eax
sub esi, edi
push esi
lea ecx, [esp + 0x2c4]
push ecx
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x2c], esi
jne 0x10012d85
cmp edi, ebx
je 0x10012d10
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10012dc0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x10012dc0
lea esi, [esp + 0x38]
call fcn.1001ec30
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x1c]
call fcn.10011d50
jmp 0x10012c72
mov byte [esp + 0x12], 1
lea esi, [esp + 0x1c]
call fcn.10011d50
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp byte [esp + 0x12], bl
je 0x10012df3
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10012c72
lea esi, [esp + 0x38]
call fcn.1001ec30
lea esi, [esp + 0x70]
call fcn.10014570
mov ecx, dword [esp + 0x82bc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10024280
mov esp, ebp
pop ebp
ret 0x10