Function at 0x41be80
Capabilities:
Check if file exists
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
cmp dword [ebp + 0x10], 0
je 0x41bea4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bea4
xor eax, eax
jmp 0x41c153
mov dword [ebp - 8], 0xa00000
push 0xa00000
call fcn.004dcb1e
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x41bed4
xor eax, eax
jmp 0x41c153
push 0x38
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.0050bed0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051186e
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
push 0
push 0x40
push 0x8000
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.005104eb
add esp, 0x14
test eax, eax
jne 0x41c138
push 0x57434c
mov eax, dword [ebp - 0x50]
push eax
call fcn.0051050b
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x41c12c
mov dword [ebp - 0x58], 0
push 0x57419c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0050c405
add esp, 0xc
test eax, eax
jne 0x41c11e
push 0
push 0xa00000
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00513480
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push 0
push 0xa00000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00516840
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
jmp 0x41bfe3
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov edx, dword [ebp - 0x7c]
adc edx, 0
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x64]
jg 0x41c061
jl 0x41bff5
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x68]
jae 0x41c061
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00534dd0
mov edx, dword [ebp - 0x54]
push edx
push 1
push 0xa00000
mov eax, dword [ebp - 4]
push eax
call fcn.0050cf98
add esp, 0x10
imul eax, eax, 0xa00000
xor ecx, ecx
add eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
adc edx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x58]
push eax
push 1
push 0xa00000
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050c5ba
add esp, 0x10
imul eax, eax, 0xa00000
xor edx, edx
add eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
adc ecx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
jmp 0x41bfd1
mov edx, dword [ebp - 0x70]
or edx, dword [ebp - 0x6c]
je 0x41c0d3
mov eax, dword [ebp - 0x54]
push eax
push 1
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0050cf98
add esp, 0x10
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.00513300
add eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
adc ecx, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x58]
push edx
push 1
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050c5ba
add esp, 0x10
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00513300
add eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
adc ecx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x78]
jne 0x41c0ff
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x74]
jne 0x41c0ff
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp - 0x10]
jne 0x41c0ff
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0xc]
jne 0x41c0ff
mov dword [ebp - 0x8c], 1
jmp 0x41c109
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0050c9e7
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
call fcn.0050c9e7
add esp, 4
jmp 0x41c138
mov eax, dword [ebp - 0x50]
push eax
call fcn.0051073b
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.004dcb13
add esp, 4
mov eax, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
ret