Function at 0x4a20e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4d82d4]
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.0046a2c9
add esp, 0xc
push 0x61a8
push 0x80000020
push 3
push 3
lea eax, [ebp - 0x114]
call fcn.0048c6b2
add esp, 0x10
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x128], 0xffffffff
jne 0x4a21bb
push edi
call fcn.00466725
xor eax, eax
inc eax
jmp 0x4a237e
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 0x4a233c
cmp dword [ebp - 0x12c], 4
jb 0x4a233c
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 0x4a233c
cmp dword [ebp - 0x12c], 4
jb 0x4a233c
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 0x4a233c
cmp dword [ebp - 0x12c], 4
jb 0x4a233c
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 0x4a233c
cmp dword [ebp - 0x12c], 0x10
jb 0x4a233c
mov esi, dword [ebp - 0x128]
call fcn.0048ad7b
push edi
call fcn.00466725
pop ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [ebp + eax - 0x124]
add ecx, edx
inc eax
cmp eax, 0x10
jb 0x4a228f
mov eax, dword [ebp - 0x134]
add eax, ecx
cmp eax, dword [ebp - 0x138]
je 0x4a22ce
cmp dword [0x5e8754], ebx
je 0x4a2368
lea eax, [ebp - 0x114]
call fcn.0048c2f4
xor eax, eax
inc eax
jmp 0x4a237f
mov eax, 0x6ddd00
cmp dword [ebp - 0x130], eax
jbe 0x4a22e1
mov dword [ebp - 0x130], eax
push 0x2b8
lea eax, [ebp - 0x148]
push str.UpdatePAULA2.c
push eax
call fcn.0041de8c
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.0041cec3
push eax
call fcn.00403bf4
add esp, 0x24
cmp eax, dword [ebp - 0x130]
jl 0x4a2338
lea eax, [ebp - 0x114]
call fcn.0048c2f4
test eax, eax
je 0x4a22c6
xor eax, eax
jmp 0x4a237f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x128]
call fcn.0048ad7b
push edi
call fcn.00466725
pop ecx
cmp dword [0x5e8754], ebx
jne 0x4a22c6
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dword [0x5e8754], 1
call fcn.004a20e9
mov dword [0x5e8754], ebx
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret