Function at 0x492d67
Capabilities:
Check if file exists

Disassembly:
push 0x11c
mov eax, 0x5e4649
call fcn.00592017
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.0049bce6
push 0x61ce3e
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 0x493080
cmp dword [ebx + 0xf8], 0
jbe 0x492e14
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x118]
lea ecx, [ebx + 0xf4]
mov edi, dword [ecx]
push eax
call fcn.00440248
mov eax, dword [ebp - 0x118]
cmp eax, edi
je 0x492deb
mov ecx, dword [esi + 0xc]
cmp ecx, dword [eax + 0x10]
jge 0x492ded
mov eax, edi
cmp eax, edi
je 0x492e14
push dword [ebx + 0xf8]
mov edi, str.ScreenSaverFrame::GenImgJsonInfoImpl
push 0x3aa
push edi
push str.__s__d___OnGetImg_m_SendPicId__d_continue
call fcn.0040a649
add esp, 0x10
jmp 0x493193
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 0x492e3c
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 0x3af
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 0x493170
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.0042348d
push 0
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00426886
push 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.00426802
mov edi, eax
push 0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00426802
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [edi + 0x14], 8
jb 0x492ede
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x492ee6
mov eax, dword [eax]
push edi
push eax
push 0x3b5
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.0040b67b
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0040b67b
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00423c0c
pop ecx
pop ecx
test al, al
je 0x49314b
lea ecx, [ebp - 0x110]
call fcn.0049066f
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00425218
mov byte [ebp - 4], 7
cmp dword [ebp - 0x30], 0
jbe 0x493123
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.005acdf0
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.0041321d
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0041321d
push dword [ebp - 0x10c]
push 0x3c2
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.0049bd1c
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebx + 0xf4]
call fcn.00440248
mov edi, dword [ebp - 0x11c]
lea ecx, [ebx + 0xf4]
cmp edi, dword [ecx]
je 0x492fff
mov eax, dword [ebp - 0x10c]
cmp eax, dword [edi + 0x10]
jge 0x493037
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push ecx
push eax
push ecx
call fcn.0044039e
push eax
add eax, 0x10
lea ecx, [ebx + 0xf4]
push eax
push edi
lea eax, [ebp - 0x124]
push eax
call fcn.004403bd
mov edi, dword [ebp - 0x124]
mov dword [edi + 0x14], 1
cmp dword [ebx + 0xcc], 3
jne 0x493136
lea ecx, [ebp - 0x40]
call fcn.00404812
lea ecx, [ebp - 0x110]
call fcn.004931a6
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.0040b67b
mov edi, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x128]
cmp dword [ebx + 4], 0
jbe 0x493110
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.0049be83
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 0x3ee
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.00591fc1
ret 4
push 0x3d5
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.004931a6
jmp 0x49315e
push 0x3da
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 0x493187
push 0x3df
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.0040b67b
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc0]
jne 0x492db8
jmp 0x49307a