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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x529086
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x529052
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x44]
mov dl, 1
call fcn.0047393c
test al, al
je 0x529047
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x48]
call fcn.0040627c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x528ddb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
inc dword [ebp - 0x20]
jmp 0x529052
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00420f40
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x28]
lea eax, [ebp - 4]
call fcn.00406104
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.00450890
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x24]
call fcn.00450890
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x528e52
mov eax, dword [ebp - 0x3c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x528e69
mov eax, dword [ebp - 0x40]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x34]
call fcn.0040627c
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x30]
call fcn.0040627c
push eax
push 0
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
sete byte [ebp - 0x25]
cmp byte [ebp - 0x25], 0
je 0x528eb9
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x529052
push 0
push 0
push 3
push 0
push 7
push 0x80000000
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x60]
call fcn.0040627c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x528efd
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x529052
xor eax, eax
push ebp
push 0x529040
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040627c
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x528f41
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x529029
xor eax, eax
push ebp
push 0x529022
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0x3000
push 0x1000
push 0
mov eax, dword [0x66bb1c]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x528f7f
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x52900b
xor eax, eax
push ebp
push 0x529004
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x1000
mov ebx, dword [ebp - 0x18]
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x528fae
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x528fc8
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x1c], 0x1000
jae 0x528f8d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x20]
inc dword [ebp - 0x20]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52900b
push 0x8000
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x66bd88]
mov eax, dword [eax]
call eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529029
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529052
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x20]
jg 0x528d76
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52908d
lea eax, [ebp - 0x60]
mov edx, 8
call fcn.00405df4
lea eax, [ebp - 4]
call fcn.00405dd0
ret