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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push 1
push eax
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x40], eax
mov ecx, 0xdb
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x400]
push ebx
push eax
push dword [ebp + 8]
call fcn.1006a9c4
add esp, 0x10
test eax, eax
je 0x1006a6d7
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x8f]
mov byte [ebp - 0x90], bl
mov dword [ebp - 0x18], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x90]
push 0x40
push eax
push dword [ebp - 0x1a4]
push dword [ebp - 0x1ac]
push dword [ebp - 0x2e0]
call fcn.10070f4a
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x90]
push dword [ebp - 0x18]
push eax
call fcn.10074d07
add esp, 0x24
test eax, eax
jne 0x1006a686
push 0x2552
push 0x1b
jmp 0x1006a6d0
push dword [ebp - 0x2dc]
call fcn.1005fb73
cmp eax, ebx
pop ecx
mov dword [ebp - 0x48], eax
jne 0x1006a6a2
push 0x255d
push 0xc
jmp 0x1006a6d0
cmp dword [ebp - 0x2b8], ebx
je 0x1006a933
push dword [ebp - 0x3dc]
push dword [ebp - 0x3e0]
push dword [ebp + 0xc]
call fcn.100615fb
add esp, 0xc
test eax, eax
jne 0x1006a6de
push 0x256a
push 0x25
call fcn.100680dd
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x3c]
push ebx
push eax
push dword [ebp - 0x40]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0x2c4]
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
push 1
push ecx
push eax
mov dword [ebp - 0x50], eax
push dword [ebp + 8]
call esi
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
call esi
xor eax, eax
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2b8]
ja 0x1006a887
push 0x10
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.1007e1e0
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push ebx
push eax
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x1006a890
cmp dword [ebp - 0x34], ebx
jne 0x1006a897
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jae 0x1006a7aa
cmp dword [ebp - 8], ebx
je 0x1006a792
push dword [ebp - 8]
call fcn.1007de95
pop ecx
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x20], eax
call fcn.1007e238
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1006a89e
push dword [ebp - 0x20]
push ebx
push dword [ebp - 8]
call fcn.1007e1e0
add esp, 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x2c]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
je 0x1006a8b5
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], eax
jb 0x1006a8bc
push dword [ebp - 0x30]
push eax
push dword [ebp - 8]
call fcn.10074c8c
add esp, 0xc
test eax, eax
je 0x1006a8c5
mov edi, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0x28]
ja 0x1006a7ff
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x10], edi
jae 0x1006a827
cmp dword [ebp - 0xc], ebx
je 0x1006a812
push dword [ebp - 0xc]
call fcn.1007de95
pop ecx
push edi
mov dword [ebp - 0x10], edi
call fcn.1007e238
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1006a8ce
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0xc]
call fcn.1007e1e0
add esp, 0xc
lea edx, [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ebx
push edx
lea edx, [ebp - 0x90]
push dword [ebp - 0x10]
mov eax, dword [ecx]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
push dword [ebp - 8]
push dword [ebp - 0x18]
push edx
call dword [eax + 0x14]
test eax, eax
je 0x1006a8d7
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006a8e0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jb 0x1006a8e7
jmp 0x1006a737
mov dword [ebp - 0x38], 1
jmp 0x1006a8fc
push 0x2591
jmp 0x1006a8c1
push 0x2599
jmp 0x1006a8c1
push 0x25a6
push 0x21
call fcn.100680dd
pop ecx
mov dword [ebp - 4], 1
pop ecx
jmp 0x1006a90a
push 0x25b0
jmp 0x1006a8c1
push 0x25b6
push 0xd
jmp 0x1006a8ee
push 0x25be
push 0x1c
jmp 0x1006a8ee
push 0x25cd
push 0x21
jmp 0x1006a8ee
push 0x25d9
push 0x12
jmp 0x1006a8ee
push 0x25e4
jmp 0x1006a8ec
push 0x25ea
push 0xe
call fcn.100680dd
pop ecx
mov dword [ebp - 4], 1
pop ecx
cmp dword [ebp - 8], ebx
je 0x1006a90a
push dword [ebp - 8]
call fcn.1007de95
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x1006a918
push dword [ebp - 0xc]
call fcn.1007de95
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [ebp - 0x38], ebx
je 0x1006a6d7
cmp dword [ebp - 4], ebx
jne 0x1006a6d7
push 1
pop eax
jmp 0x1006a6d9