Function at 0x49a06e
Capabilities:
Check if file exists

Disassembly:
push 0x11c
mov eax, 0x5eed06
call fcn.0059bbd7
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebx + 0xc8]
mov ecx, eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x128], eax
call fcn.004a3e44
push 0x627e3e
lea ecx, [ebp - 0xa8]
call fcn.004045aa
and dword [ebp - 4], 0
mov eax, dword [ebx + 0xc0]
mov esi, dword [eax]
cmp esi, eax
je 0x49a387
cmp dword [ebx + 0xf8], 0
jbe 0x49a11b
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x118]
lea ecx, [ebx + 0xf4]
mov edi, dword [ecx]
push eax
call fcn.00445318
mov eax, dword [ebp - 0x118]
cmp eax, edi
je 0x49a0f2
mov ecx, dword [esi + 0xc]
cmp ecx, dword [eax + 0x10]
jge 0x49a0f4
mov eax, edi
cmp eax, edi
je 0x49a11b
push dword [ebx + 0xf8]
mov edi, str.ScreenSaverFrame::GenImgJsonInfoImpl
push 0x3b0
push edi
push str.__s__d___OnGetImg_m_SendPicId__d_continue
call fcn.0040a649
add esp, 0x10
jmp 0x49a49a
and dword [ebp - 0x18], 0
lea eax, [ebx + 0x90]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b155
lea edi, [esi + 0x28]
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x49a143
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x3b5
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___OnGetImg_id__s
call fcn.0040a649
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49a477
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.004236f2
push 0
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00426d6b
push 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.00426ce7
mov edi, eax
push 0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00426ce7
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [edi + 0x14], 8
jb 0x49a1e5
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x49a1ed
mov eax, dword [eax]
push edi
push eax
push 0x3bb
mov edi, str.ScreenSaverFrame::GenImgJsonInfoImpl
push edi
push str.__s__d___OnGetImg_szFileMd5___s_szMd5___s
call fcn.0040a649
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.0040b67e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0040b67e
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00423e8e
pop ecx
pop ecx
test al, al
je 0x49a452
lea ecx, [ebp - 0x110]
call fcn.0049780d
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004256cd
mov byte [ebp - 4], 7
cmp dword [ebp - 0x30], 0
jbe 0x49a42a
cmp dword [ebp - 0x2c], 0x10
lea edi, [ebp - 0x40]
mov eax, dword [esi + 0xc]
cmovae edi, dword [ebp - 0x40]
push edi
mov dword [ebp - 0x10c], eax
call fcn.005b69b0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x108]
call fcn.0040464f
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0041322b
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041322b
push dword [ebp - 0x10c]
push 0x3c8
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___OnGetImg_base64_ok_id__d
call fcn.0040a649
add esp, 0x10
lea eax, [ebp - 0x110]
lea ecx, [ebx + 0xc8]
push eax
call fcn.004a3e7a
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebx + 0xf4]
call fcn.00445318
mov edi, dword [ebp - 0x11c]
lea ecx, [ebx + 0xf4]
cmp edi, dword [ecx]
je 0x49a306
mov eax, dword [ebp - 0x10c]
cmp eax, dword [edi + 0x10]
jge 0x49a33e
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push ecx
push eax
push ecx
call fcn.0044546e
push eax
add eax, 0x10
lea ecx, [ebx + 0xf4]
push eax
push edi
lea eax, [ebp - 0x124]
push eax
call fcn.0044548d
mov edi, dword [ebp - 0x124]
mov dword [edi + 0x14], 1
cmp dword [ebx + 0xcc], 3
jne 0x49a43d
lea ecx, [ebp - 0x40]
call fcn.00404812
lea ecx, [ebp - 0x110]
call fcn.0049a4ad
lea ecx, [ebp - 0x78]
call fcn.00404812
lea ecx, [ebp - 0x58]
call fcn.00404812
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040b67e
mov edi, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x128]
cmp dword [ebx + 4], 0
jbe 0x49a417
push 0
lea ecx, [ebp - 0x20]
call fcn.00404ba6
push str.data
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00405401
mov edx, eax
mov ecx, ebx
call fcn.004a3fe1
lea ecx, [ebp - 0x60]
call fcn.00406b04
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00406b1f
push eax
mov ecx, edi
call fcn.00409145
lea ecx, [ebp - 0x90]
call fcn.00404812
push dword [ebp - 0x98]
push 0x3f4
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___OnGetImg_length__d
call fcn.0040a649
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.004065e4
lea ecx, [ebp - 0x20]
call fcn.00404dbc
lea ecx, [ebp - 0xa8]
call fcn.00404812
call fcn.0059bb81
ret 4
push 0x3db
push edi
push str.__s__d___OnGetImg_id_strText_error
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00404812
lea ecx, [ebp - 0x110]
call fcn.0049a4ad
jmp 0x49a465
push 0x3e0
push edi
push str.__s__d___MD5_error
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.00404812
lea ecx, [ebp - 0x58]
call fcn.00404812
jmp 0x49a48e
push 0x3e5
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___file_not_exist
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040b67e
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc0]
jne 0x49a0bf
jmp 0x49a381