Function at 0x510120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x650], ecx
mov dword [ebp - 0x660], 0
mov eax, dword [ebp - 0x650]
mov ecx, dword [eax + 8]
call fcn.0040d3c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51017d
mov ecx, dword [ebp - 0x650]
mov ecx, dword [ecx + 8]
call fcn.0040d3c0
push eax
push str.CDIYLocalImgToSerImg_file_s_not_exist
call fcn.005564a0
add esp, 8
jmp 0x5104b1
mov edx, dword [ebp - 0x650]
cmp dword [edx + 0x10], 0
jne 0x5101a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x650]
mov dword [ecx + 0x10], eax
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.0063a460
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x650]
mov ecx, dword [ecx + 8]
call fcn.0040d3c0
push eax
call fcn.005e9170
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.0064ff3a
add esp, 8
push str.ZtPQgrXT_mry_
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00421970
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.00510b10
add esp, 0xc
lea ecx, [ebp - 0x23c]
call fcn.00421c30
push 0x104
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0063a460
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00425220
push eax
lea ecx, [ebp - 0x224]
call fcn.00424f20
push eax
call fcn.005e9350
add esp, 0x10
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0064ff3a
add esp, 8
lea ecx, [ebp - 0x65c]
call fcn.00413220
push 0
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x444]
call fcn.004214f0
mov eax, dword [eax]
push eax
push 0
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x340]
call fcn.004214f0
mov edx, dword [eax]
push edx
push str.http:__bizhi.shanhutech.cn_live_intf_IsUpload_md5_ssign_s
lea eax, [ebp - 0x65c]
push eax
call fcn.00422a10
add esp, 0x10
lea ecx, [ebp - 0x340]
call fcn.00421ba0
lea ecx, [ebp - 0x444]
call fcn.00421ba0
lea ecx, [ebp - 0x658]
call fcn.00413220
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx + 0x10]
push edx
push 0x4e20
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x65c]
push ecx
call fcn.00540230
add esp, 0x10
test eax, eax
jne 0x51033f
push str.CDIYLocalImgToSerImg_check_img_fail
call fcn.005564a0
add esp, 4
lea ecx, [ebp - 0x658]
call fcn.00413870
lea ecx, [ebp - 0x65c]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
jmp 0x5104b1
lea ecx, [ebp - 0x658]
call fcn.0040d3c0
push eax
mov ecx, dword [ebp - 0x650]
call fcn.00510910
test eax, eax
je 0x51038a
mov dword [ebp - 0x660], 1
lea ecx, [ebp - 0x658]
call fcn.00413870
lea ecx, [ebp - 0x65c]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
jmp 0x5104b1
push 0
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x64c]
call fcn.004214f0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x66c]
call fcn.004131e0
push 0
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0x548]
call fcn.004214f0
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x668]
call fcn.004131e0
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x668]
push ecx
mov edx, dword [ebp - 0x650]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x650]
call fcn.00510550
test eax, eax
jne 0x510401
mov dword [ebp - 0x664], 1
jmp 0x51040b
mov dword [ebp - 0x664], 0
mov cl, byte [ebp - 0x664]
mov byte [ebp - 0x651], cl
lea ecx, [ebp - 0x668]
call fcn.00413870
lea ecx, [ebp - 0x548]
call fcn.00421ba0
lea ecx, [ebp - 0x66c]
call fcn.00413870
lea ecx, [ebp - 0x64c]
call fcn.00421ba0
movzx edx, byte [ebp - 0x651]
test edx, edx
je 0x51047e
push str.upload_local_image_fail
call fcn.005564a0
add esp, 4
lea ecx, [ebp - 0x658]
call fcn.00413870
lea ecx, [ebp - 0x65c]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
jmp 0x5104b1
mov dword [ebp - 0x660], 1
lea ecx, [ebp - 0x658]
call fcn.00413870
lea ecx, [ebp - 0x65c]
call fcn.00413870
lea ecx, [ebp - 0x224]
call fcn.00421c30
xor eax, eax
jne 0x510143
mov ecx, dword [ebp - 0x650]
cmp dword [ecx + 0x14], 0
je 0x5104e6
mov edx, dword [ebp - 0x650]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x650]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x650]
mov edx, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret