Function at 0x4a7f62
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4e22e4]
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.0046b9b6
add esp, 0xc
push 0x61a8
push 0x80000020
push 3
push 3
lea eax, [ebp - 0x114]
call fcn.0048ec75
add esp, 0x10
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x128], 0xffffffff
jne 0x4a8034
push edi
call fcn.00467de9
xor eax, eax
inc eax
jmp 0x4a81f7
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 0x4a81b5
cmp dword [ebp - 0x12c], 4
jb 0x4a81b5
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 0x4a81b5
cmp dword [ebp - 0x12c], 4
jb 0x4a81b5
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 0x4a81b5
cmp dword [ebp - 0x12c], 4
jb 0x4a81b5
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 0x4a81b5
cmp dword [ebp - 0x12c], 0x10
jb 0x4a81b5
mov esi, dword [ebp - 0x128]
call fcn.0048d33e
push edi
call fcn.00467de9
pop ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x124]
add ecx, edx
inc eax
cmp eax, 0x10
jb 0x4a8108
mov eax, dword [ebp - 0x134]
add eax, ecx
cmp eax, dword [ebp - 0x138]
je 0x4a8147
cmp dword [0x5f6208], ebx
je 0x4a81e1
lea eax, [ebp - 0x114]
call fcn.0048e8b7
xor eax, eax
inc eax
jmp 0x4a81f8
mov eax, 0x6ddd00
cmp dword [ebp - 0x130], eax
jbe 0x4a815a
mov dword [ebp - 0x130], eax
push 0x2b8
lea eax, [ebp - 0x148]
push str.UpdatePAULA2.c
push eax
call fcn.0041ced9
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.0041bf10
push eax
call fcn.004041ba
add esp, 0x24
cmp eax, dword [ebp - 0x130]
jl 0x4a81b1
lea eax, [ebp - 0x114]
call fcn.0048e8b7
test eax, eax
je 0x4a813f
xor eax, eax
jmp 0x4a81f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x128]
call fcn.0048d33e
push edi
call fcn.00467de9
pop ecx
cmp dword [0x5f6208], ebx
jne 0x4a813f
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [0x5f6208], 1
call fcn.004a7f62
mov dword [0x5f6208], ebx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret