Function at 0x4c5fa1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5092e4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor eax, eax
mov word [ebp - 0x124], ax
push esi
push edi
lea edi, [ebp - 0x122]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x148], ax
lea edi, [ebp - 0x146]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push 0x103
stosw word es:[edi], ax
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x138], ebx
mov byte [ebp - 0x114], bl
call fcn.00401f80
mov edi, dword [ebp + 8]
add esp, 0xc
neg edi
sbb edi, edi
push 0x24e
and edi, 0xffffffe0
add edi, 0x20
push str.UpdatePAULA2.c
push edi
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
call fcn.0047a356
add esp, 0xc
push 0x61a8
push 0x80000020
push 3
push 3
lea eax, [ebp - 0x114]
call fcn.004a1899
add esp, 0x10
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x128], 0xffffffff
jne 0x4c6073
push edi
call fcn.00476372
xor eax, eax
inc eax
jmp 0x4c6236
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x128]
call esi
test eax, eax
je 0x4c61f4
cmp dword [ebp - 0x12c], 4
jb 0x4c61f4
push ebx
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x128]
call esi
test eax, eax
je 0x4c61f4
cmp dword [ebp - 0x12c], 4
jb 0x4c61f4
push ebx
lea eax, [ebp - 0x12c]
push eax
push 4
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x128]
call esi
test eax, eax
je 0x4c61f4
cmp dword [ebp - 0x12c], 4
jb 0x4c61f4
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x10
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x128]
call esi
test eax, eax
je 0x4c61f4
cmp dword [ebp - 0x12c], 0x10
jb 0x4c61f4
mov esi, dword [ebp - 0x128]
call fcn.0049ff62
push edi
call fcn.00476372
pop ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x124]
add ecx, edx
inc eax
cmp eax, 0x10
jb 0x4c6147
mov eax, dword [ebp - 0x134]
add eax, ecx
cmp eax, dword [ebp - 0x138]
je 0x4c6186
cmp dword [0x61d5c4], ebx
je 0x4c6220
lea eax, [ebp - 0x114]
call fcn.004a14db
xor eax, eax
inc eax
jmp 0x4c6237
mov eax, 0x6ddd00
cmp dword [ebp - 0x130], eax
jbe 0x4c6199
mov dword [ebp - 0x130], eax
push 0x2b8
lea eax, [ebp - 0x148]
push str.UpdatePAULA2.c
push eax
call fcn.004205e9
push ecx
mov edi, esp
lea esi, [ebp - 0x124]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x148]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041f61b
push eax
call fcn.004042fa
add esp, 0x24
cmp eax, dword [ebp - 0x130]
jl 0x4c61f0
lea eax, [ebp - 0x114]
call fcn.004a14db
test eax, eax
je 0x4c617e
xor eax, eax
jmp 0x4c6237
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x128]
call fcn.0049ff62
push edi
call fcn.00476372
pop ecx
cmp dword [0x61d5c4], ebx
jne 0x4c617e
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [0x61d5c4], 1
call fcn.004c5fa1
mov dword [0x61d5c4], ebx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret