Function at 0x4a8ecd
Capabilities:
Check if file exists

Disassembly:
push 0x884
mov eax, 0x5c10bd
call fcn.00598f94
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x844], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x840], ecx
mov dword [ebp - 0x83c], ebx
cmp eax, ebx
jne 0x4a8f0a
xor eax, eax
call fcn.00599017
ret 0x10
lea eax, [ebp - 0x86c]
push eax
call fcn.00440517
push dword [ebp + 8]
lea ecx, [ebp - 0x86c]
mov dword [ebp - 4], ebx
call fcn.004a86f9
mov eax, dword [ebp - 0x85c]
sub eax, dword [ebp - 0x860]
push 0x58
cdq
pop ecx
idiv ecx
cmp eax, 1
mov dword [ebp - 0x838], eax
jge 0x4a8f55
xor edi, edi
lea esi, [ebp - 0x86c]
call fcn.004a9ffd
mov eax, edi
jmp 0x4a8f02
cmp eax, ebx
mov dword [ebp - 0x834], ebx
jle 0x4a91a2
push dword [ebp - 0x834]
lea esi, [ebp - 0x86c]
call fcn.004aa037
mov esi, eax
cmp byte [esi + 8], bl
jne 0x4a918a
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00596530
add esp, 0xc
cmp dword [esi + 0x44], 8
jb 0x4a8fa8
mov esi, dword [esi + 0x30]
jmp 0x4a8fab
add esi, 0x30
lea eax, [ebp - 0x218]
push 0x104
push eax
mov ebx, esi
call fcn.0042574a
pop ecx
pop ecx
test eax, eax
je 0x4a9188
xor eax, eax
cmp ax, word [ebp - 0x218]
je 0x4a9188
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x888]
call fcn.0040863b
mov eax, dword [ebp - 0x840]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x850], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x854], ecx
mov ecx, esi
push ecx
lea ecx, [ebp - 0x890]
push ecx
push eax
call fcn.004a9f92
lea edi, [ebp - 0x854]
mov esi, eax
call fcn.004acc17
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea esi, [ebp - 0x888]
inc bl
mov byte [ebp - 4], 0
call fcn.00404eaf
test bl, bl
jne 0x4a9188
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00596530
lea eax, [ebp - 0x420]
add esp, 0xc
push eax
lea ebx, [ebp - 0x218]
call fcn.004258be
pop ecx
test eax, eax
je 0x4a9188
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a9188
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00596530
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x628]
push eax
mov eax, ebx
mov esi, 0x103
push eax
mov dword [ebp - 0x84c], esi
call dword [sym.imp.SHLWAPI.dll_UrlGetPartW]
test eax, eax
jl 0x4a9188
cmp word [ebp - 0x628], 0
je 0x4a9188
xor eax, eax
push 0x206
mov word [ebp - 0x830], ax
xor ebx, ebx
lea eax, [ebp - 0x82e]
push ebx
push eax
call fcn.00596530
mov ecx, dword [ebp - 0x848]
mov eax, dword [ecx]
add esp, 0xc
push esi
lea edx, [ebp - 0x830]
push edx
lea edx, [ebp - 0x628]
push edx
call dword [eax + 0x10]
test eax, eax
jne 0x4a915d
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x888]
call fcn.0040863b
mov eax, esi
push eax
push dword [ebp - 0x840]
mov byte [ebp - 4], 2
call fcn.004a9eef
xor ecx, ecx
inc ecx
push ebx
push ecx
mov dword [eax], ecx
mov byte [ebp - 4], bl
call fcn.00404eaf
jmp 0x4a9188
lea ebx, [ebp - 0x420]
call fcn.0047601e
push 0
mov eax, ebx
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4a9188
mov dword [ebp - 0x83c], 1
xor ebx, ebx
inc dword [ebp - 0x834]
mov eax, dword [ebp - 0x834]
cmp eax, dword [ebp - 0x838]
jl 0x4a8f63
xor edi, edi
cmp dword [ebp - 0x838], ebx
jle 0x4a91ee
push edi
lea esi, [ebp - 0x86c]
call fcn.004aa037
cmp byte [eax + 8], bl
je 0x4a91e5
push dword [ebp - 0x840]
mov ecx, dword [ebp - 0x844]
push dword [ebp - 0x848]
push ebx
push dword [eax]
call fcn.004a8ecd
test eax, eax
je 0x4a91e5
mov dword [ebp - 0x83c], 1
inc edi
cmp edi, dword [ebp - 0x838]
jl 0x4a91ac
cmp dword [ebp + 0xc], ebx
je 0x4a9211
cmp dword [ebp - 0x83c], ebx
je 0x4a9211
mov eax, dword [ebp - 0x844]
push ebx
push ebx
push 0x506
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [ebp - 0x83c]
jmp 0x4a8f46