Function at 0x100129c0
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.10030df0
mov eax, dword [0x100525d4]
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.10023380
add esp, 0xc
mov eax, str.1.2.3
lea ecx, [esp + 0x38]
call fcn.1003da60
test eax, eax
jne 0x10012a77
cmp edi, ebx
je 0x10012a2a
call fcn.10015c90
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 0x10012a77
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 0x10012a90
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.1001d39b
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.10023380
add esp, 0xc
push 0x3fff
lea edx, [esp + 0x2bd]
push ebx
push edx
mov byte [esp + 0x2c4], bl
call fcn.10023380
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.10014420
lea ecx, [esp + 0x70]
call fcn.100155a0
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 0x10012de9
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10012ce9
push eax
lea ecx, [esp + 0x42bc]
push ecx
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x1f], bl
call fcn.100159e0
test eax, eax
je 0x10012c3e
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.10014bb0
test eax, eax
je 0x10012bdf
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.1003c4e0
add esp, 8
cmp eax, 0xfffffffc
jl 0x10012ba9
cmp eax, 0xfffffffd
jle 0x10012c51
cmp eax, 2
je 0x10012c51
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 0x10012cb4
cmp edi, ebx
je 0x10012b6f
mov edi, dword [esp + 0x34]
cmp edi, ebx
je 0x10012bed
mov ecx, dword [esp + 0x30]
add dword [edi + 8], ecx
adc dword [edi + 0xc], ebx
cmp dword [esp + 0x1c], ebx
je 0x10012c13
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 0x10012c13
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 0x10012b13
jmp 0x10012cf3
lea esi, [esp + 0x38]
mov byte [esp + 0x12], 1
call fcn.1003c300
jmp 0x10012de9
lea esi, [esp + 0x38]
call fcn.1003c300
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 0x10012c92
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.10014510
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x82b0]
xor ecx, esp
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x38]
call fcn.1003c300
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 0x10012c92
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x10012c84
cmp byte [esp + 0x13], bl
jne 0x10012de9
lea eax, [esp + 0x70]
call fcn.10015b70
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.10014bb0
test eax, eax
je 0x10012ddb
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.1003c4e0
add esp, 8
cmp eax, 0xfffffffc
jl 0x10012d62
cmp eax, 0xfffffffd
jle 0x10012da5
cmp eax, 2
je 0x10012da5
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 0x10012da5
cmp edi, ebx
je 0x10012d30
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10012de0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x10012de0
lea esi, [esp + 0x38]
call fcn.1003c300
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.10011d70
jmp 0x10012c92
mov byte [esp + 0x12], 1
lea esi, [esp + 0x1c]
call fcn.10011d70
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 0x10012e13
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10012c92
lea esi, [esp + 0x38]
call fcn.1003c300
lea esi, [esp + 0x70]
call fcn.10014510
mov ecx, dword [esp + 0x82bc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 0x10