Function at 0x4a3eae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5065d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor eax, eax
push esi
push edi
xor esi, esi
mov word [ebp - 0x138], si
lea edi, [ebp - 0x136]
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], si
lea edi, [ebp - 0x146]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x103
stosw word es:[edi], ax
lea eax, [ebp - 0x113]
push esi
push eax
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x114], 0
call fcn.004ab5d0
mov ebx, dword [ebp + 8]
add esp, 0xc
neg ebx
sbb ebx, ebx
push 0x24e
and ebx, 0xffffffe0
add ebx, 0x20
push str..UpdatePAULA2.c
push ebx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call fcn.004449ae
add esp, 0xc
push str.UULF.lts
lea edi, [ebp - 0x114]
call fcn.004411d9
mov dword [esp], 0x61a8
push 0x80000020
push 3
push 3
mov eax, edi
call fcn.00418dab
add esp, 0x10
mov dword [ebp - 0x118], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x118], 0xffffffff
jne 0x4a3f8f
push ebx
call fcn.00445606
xor eax, eax
inc eax
jmp 0x4a4158
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x4a4114
cmp dword [ebp - 0x11c], 4
jb 0x4a4114
push esi
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x4a4114
cmp dword [ebp - 0x11c], 4
jb 0x4a4114
push esi
lea eax, [ebp - 0x11c]
push eax
push 4
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x118]
call edi
test eax, eax
je 0x4a4114
cmp dword [ebp - 0x11c], 4
jb 0x4a4114
push esi
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push eax
push 0x10
lea eax, [ebp - 0x138]
push eax
push esi
call edi
test eax, eax
je 0x4a410c
cmp dword [ebp - 0x11c], 0x10
jb 0x4a410c
call fcn.0041cef3
push ebx
call fcn.00445606
pop ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x138]
add ecx, edx
inc eax
cmp eax, 0x10
jb 0x4a405e
mov eax, dword [ebp - 0x124]
add eax, ecx
cmp eax, dword [ebp - 0x128]
je 0x4a409e
cmp dword [0x618574], 0
je 0x4a4141
lea eax, [ebp - 0x114]
call fcn.0041a140
xor eax, eax
inc eax
jmp 0x4a4159
mov eax, 0x6ddd00
cmp dword [ebp - 0x120], eax
jbe 0x4a40b1
mov dword [ebp - 0x120], eax
push 0x2b8
lea eax, [ebp - 0x148]
push str..UpdatePAULA2.c
push eax
call fcn.0049ce66
push ecx
mov edi, esp
lea esi, [ebp - 0x138]
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.0049bbbe
push eax
call fcn.004ad589
add esp, 0x24
cmp eax, dword [ebp - 0x120]
jl 0x4a4108
lea eax, [ebp - 0x114]
call fcn.0041a140
test eax, eax
je 0x4a4096
xor eax, eax
jmp 0x4a4159
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a4120
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x118]
call fcn.0041cef3
push ebx
call fcn.00445606
cmp dword [0x618574], 0
pop ecx
jne 0x4a4096
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov dword [0x618574], 1
call fcn.004a3eae
and dword [0x618574], 0
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aaeb5
leave
ret