Function at 0x4a80c4
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.0046bf44
add esp, 0xc
push 0x61a8
push 0x80000020
push 3
push 3
lea eax, [ebp - 0x114]
call fcn.0048ebdd
add esp, 0x10
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x128], 0xffffffff
jne 0x4a8196
push edi
call fcn.0046821e
xor eax, eax
inc eax
jmp 0x4a8359
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 0x4a8317
cmp dword [ebp - 0x12c], 4
jb 0x4a8317
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 0x4a8317
cmp dword [ebp - 0x12c], 4
jb 0x4a8317
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 0x4a8317
cmp dword [ebp - 0x12c], 4
jb 0x4a8317
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 0x4a8317
cmp dword [ebp - 0x12c], 0x10
jb 0x4a8317
mov esi, dword [ebp - 0x128]
call fcn.0048d2af
push edi
call fcn.0046821e
pop ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x124]
add ecx, edx
inc eax
cmp eax, 0x10
jb 0x4a826a
mov eax, dword [ebp - 0x134]
add eax, ecx
cmp eax, dword [ebp - 0x138]
je 0x4a82a9
cmp dword [0x5f6218], ebx
je 0x4a8343
lea eax, [ebp - 0x114]
call fcn.0048e81f
xor eax, eax
inc eax
jmp 0x4a835a
mov eax, 0x6ddd00
cmp dword [ebp - 0x130], eax
jbe 0x4a82bc
mov dword [ebp - 0x130], eax
push 0x2b8
lea eax, [ebp - 0x148]
push str.UpdatePAULA2.c
push eax
call fcn.0041cf84
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.0041bff1
push eax
call fcn.004041ba
add esp, 0x24
cmp eax, dword [ebp - 0x130]
jl 0x4a8313
lea eax, [ebp - 0x114]
call fcn.0048e81f
test eax, eax
je 0x4a82a1
xor eax, eax
jmp 0x4a835a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x128]
call fcn.0048d2af
push edi
call fcn.0046821e
pop ecx
cmp dword [0x5f6218], ebx
jne 0x4a82a1
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [0x5f6218], 1
call fcn.004a80c4
mov dword [0x5f6218], ebx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret