Function at 0x4938f2
Capabilities:
Check if file exists

Disassembly:
push 0x11c
mov eax, 0x5e62af
call fcn.00593b07
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.0049c99f
push 0x61ee2e
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 0x493c0b
cmp dword [ebx + 0xf8], 0
jbe 0x49399f
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 0x493976
mov ecx, dword [esi + 0xc]
cmp ecx, dword [eax + 0x10]
jge 0x493978
mov eax, edi
cmp eax, edi
je 0x49399f
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 0x493d1e
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 0x4939c7
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 0x493cfb
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
call fcn.00423490
push 0
mov edx, edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.00426889
push 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.00426805
mov edi, eax
push 0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00426805
add esp, 0xc
mov byte [ebp - 4], 5
cmp dword [edi + 0x14], 8
jb 0x493a69
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x493a71
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.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.00423c0f
pop ecx
pop ecx
test al, al
je 0x493cd6
lea ecx, [ebp - 0x110]
call fcn.004911fb
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.0042521b
mov byte [ebp - 4], 7
cmp dword [ebp - 0x30], 0
jbe 0x493cae
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.005ae8e0
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.00413220
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00413220
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.0049c9d5
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 0x493b8a
mov eax, dword [ebp - 0x10c]
cmp eax, dword [edi + 0x10]
jge 0x493bc2
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 0x493cc1
lea ecx, [ebp - 0x40]
call fcn.00404812
lea ecx, [ebp - 0x110]
call fcn.00493d31
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 0x493c9b
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.0049cb3c
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.00593ab1
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.00493d31
jmp 0x493ce9
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 0x493d12
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.0040b67e
mov esi, dword [esi]
cmp esi, dword [ebx + 0xc0]
jne 0x493943
jmp 0x493c05