Function at 0x412bfe
Capabilities:
Check if file exists

Disassembly:
push 0x120
mov eax, 0x54bedd
call fcn.0051d3dc
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0xc0]
mov ecx, edi
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edi
call fcn.00416bfb
push 0x556c1e
lea ecx, [ebp - 0xa8]
call fcn.00401b1b
mov eax, dword [ebx + 0xb8]
and dword [ebp - 4], 0
mov esi, dword [eax]
cmp esi, eax
je 0x412f42
cmp dword [ebx + 0xe0], 0
jbe 0x412c99
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x12c]
lea edi, [ebx + 0xdc]
push eax
mov ecx, edi
call fcn.00416cfe
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x412c99
push dword [ebx + 0xe0]
mov edi, str.ScreenSaverFrame::GenImgJsonInfoImpl
push 0x2cb
push edi
push str.__s__d___OnGetImg_m_SendPicId__d_continue
call fcn.00402cc1
add esp, 0x10
jmp 0x412f2e
and dword [ebp - 0x18], 0
lea eax, [ebx + 0x88]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.0040342e
lea edi, [esi + 0x28]
mov byte [ebp - 4], 1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x412cc1
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.004037f5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x2d0
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___OnGetImg_id__s
call fcn.00402cc1
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 0x412f0b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004355a8
push 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push edi
push eax
call fcn.004386e7
push 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00438237
mov edi, eax
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00438237
add esp, 0x2c
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 5
jb 0x412d69
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x412d71
mov eax, dword [eax]
push edi
push eax
push 0x2d6
mov edi, str.ScreenSaverFrame::GenImgJsonInfoImpl
push edi
push str.__s__d___OnGetImg_szFileMd5___s_szMd5___s
call fcn.00402cc1
add esp, 0x14
lea ecx, [ebp - 0x40]
call fcn.004036e0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.004036e0
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
call fcn.004034c6
test al, al
je 0x412ee6
lea ecx, [ebp - 0x110]
call fcn.0040f737
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043782b
pop ecx
pop ecx
cmp dword [ebp - 0x30], 0
mov byte [ebp - 4], 7
jbe 0x412ebe
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.00524dd0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x108]
call fcn.00403853
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00401e50
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401e50
push dword [ebp - 0x10c]
push 0x2e3
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___OnGetImg_base64_ok_id__d
call fcn.00402cc1
add esp, 0x10
lea eax, [ebp - 0x110]
lea edi, [ebx + 0xc0]
mov ecx, edi
push eax
push dword [edi]
call fcn.0040f05f
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebx + 0xdc]
call fcn.0040f48e
mov eax, dword [ebp - 0x120]
mov dword [eax + 0x14], 1
cmp dword [ebx + 0xc4], 3
jne 0x412ed1
lea ecx, [ebp - 0x40]
call fcn.004036ba
lea ecx, [ebp - 0x110]
call fcn.0040fc96
lea ecx, [ebp - 0x78]
call fcn.004036ba
lea ecx, [ebp - 0x58]
call fcn.004036ba
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004036e0
jmp 0x412f42
push 0x2f6
push edi
push str.__s__d___OnGetImg_id_strText_error
call fcn.00402cc1
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004036ba
lea ecx, [ebp - 0x110]
call fcn.0040fc96
jmp 0x412ef9
push 0x2fb
push edi
push str.__s__d___MD5_error
call fcn.00402cc1
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.004036ba
lea ecx, [ebp - 0x58]
call fcn.004036ba
jmp 0x412f22
push 0x300
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___file_not_exist
call fcn.00402cc1
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004036e0
mov esi, dword [esi]
cmp esi, dword [ebx + 0xb8]
jne 0x412c4f
mov edi, dword [ebp - 0x114]
cmp dword [edi + 4], 0
jbe 0x412fdf
push 0
lea ecx, [ebp - 0x128]
call fcn.0040689d
push str.data
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 8
call fcn.00406c31
push eax
push edi
call fcn.0040ed38
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.004081a6
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040a2b9
mov ecx, dword [ebp - 0x118]
push eax
call fcn.00401dd5
lea ecx, [ebp - 0x90]
call fcn.004036ba
push dword [ebp - 0x98]
push 0x30f
push str.ScreenSaverFrame::GenImgJsonInfoImpl
push str.__s__d___OnGetImg_length__d
call fcn.00402cc1
add esp, 0x10
lea ecx, [ebp - 0x60]
call fcn.0040829f
lea ecx, [ebp - 0x128]
call fcn.00406a64
lea ecx, [ebp - 0xa8]
call fcn.004036ba
call fcn.0051d386
ret 4