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

Disassembly:
push 0x78
mov eax, 0x10089862
call fcn.10063057
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x74], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x70], bl
lea edi, [ebp - 0x6f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x50
stosb byte es:[edi], al
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x84], ebx
call fcn.100620c0
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push ebx
lea eax, [ebp - 0x84]
push eax
push ebx
push esi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call edi
cmp eax, 0xffffffff
jne 0x10048174
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1004815d
push esi
push 0x100061b8
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x1004815f
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x74], eax
push 0x1008bdb8
lea eax, [ebp - 0x74]
push eax
call fcn.1006330f
push 0x60
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x60
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100481c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x1004815d
push esi
push 0x10006168
jmp 0x1004814f
cmp dword [ebp - 0x7c], 0x60
je 0x10048200
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x1004815d
push 0x60
push dword [ebp - 0x7c]
push 0x10006100
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x1004815f
mov eax, dword [ebp - 0x74]
mov ax, word [eax + 2]
mov word [ebp - 0x52], ax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x84]
push eax
push ebx
push esi
call edi
or edi, 0xffffffff
cmp eax, edi
jne 0x10048263
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 3
cmp eax, ebx
je 0x10048259
push esi
push 0x100060a0
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x1004825b
xor eax, eax
mov dword [ebp - 4], edi
jmp 0x10048163
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x60
lea eax, [ebp - 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100482a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 4
cmp eax, ebx
je 0x10048259
push esi
push 0x10006048
jmp 0x1004824b
cmp dword [ebp - 0x80], 0x60
je 0x100482ee
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 5
cmp eax, ebx
je 0x100482d9
push 0x60
push dword [ebp - 0x80]
push 0x10005fe0
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x100482db
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], edi
push 0x1008bdb8
lea eax, [ebp - 0x78]
jmp 0x1004816e
call fcn.100630e9
ret 0xc