Function at 0x508ef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6af86b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00419670
mov byte [ebp - 4], 5
call fcn.0051eed0
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004190c0
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004190c0
mov byte [ebp - 4], 7
lea edx, [ebp + 0x20]
push edx
push 0x6e0918
lea eax, [ebp - 0x12c]
push eax
call fcn.004486c0
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004157d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x12c]
call fcn.00419eb0
cmp dword [ebp - 0xd0], 0
je 0x50940b
lea ecx, [ebp - 0x2c]
call fcn.0041af60
push eax
push 0x2712
mov eax, dword [ebp - 0xd0]
push eax
call fcn.00521ea0
add esp, 0xc
push 0x11
lea ecx, [ebp + 0x20]
call fcn.0041af60
push eax
push 4
push 0x6e0920
push 1
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0xc8]
push edx
call fcn.0051ee00
add esp, 0x1c
push 0x11
lea ecx, [ebp - 0x5c]
call fcn.0041af60
push eax
push 4
push 0x6e0930
push 1
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0051ee00
add esp, 0x1c
lea ecx, [ebp + 0x68]
call fcn.0041af60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x5090a4
push 0x11
lea ecx, [ebp + 0x50]
call fcn.0041af60
push eax
push 4
push 0x6e093c
push 1
lea edx, [ebp - 0xcc]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.0051ee00
add esp, 0x1c
push 0x11
lea ecx, [ebp + 0x68]
call fcn.0041af60
push eax
push 0xa
push str.upload_file
push 1
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0xc8]
push edx
call fcn.0051ee00
add esp, 0x1c
push 1
push 0x2f
mov eax, dword [ebp - 0xd0]
push eax
call fcn.00521ea0
add esp, 0xc
mov ecx, dword [ebp - 0xc8]
push ecx
push 0x2728
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00521ea0
add esp, 0xc
push 0x5097a0
push 0x4e2b
mov eax, dword [ebp - 0xd0]
push eax
call fcn.00521ea0
add esp, 0xc
lea ecx, [ebp - 0x44]
push ecx
push 0x2711
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00521ea0
add esp, 0xc
push 1
push 0x63
mov eax, dword [ebp - 0xd0]
push eax
call fcn.00521ea0
add esp, 0xc
push 0x4e20
push 0xd
mov ecx, dword [ebp - 0xd0]
push ecx
call fcn.00521ea0
add esp, 0xc
push 0
push 0x40
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00521ea0
add esp, 0xc
push 0
push 0x51
mov eax, dword [ebp - 0xd0]
push eax
call fcn.00521ea0
add esp, 0xc
mov ecx, dword [ebp - 0xd0]
push ecx
call fcn.0051ef10
add esp, 4
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0
jne 0x509394
mov edx, dword [ebp - 0xd0]
push edx
call fcn.0051ee90
add esp, 4
push 0x34
lea ecx, [ebp - 0xc4]
call fcn.0045a4e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00517910
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xc4]
call fcn.00517f70
movzx ecx, al
test ecx, ecx
jne 0x50930e
push 0x34
lea ecx, [ebp - 0x90]
call fcn.0045a4e0
lea ecx, [ebp - 0x90]
call fcn.00517880
mov byte [ebp - 4], 0xa
push str.result
lea ecx, [ebp - 0x114]
call fcn.00419d50
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xc4]
call fcn.005189f0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x114]
call fcn.00419eb0
lea ecx, [ebp - 0x90]
call fcn.00517f70
movzx ecx, al
test ecx, ecx
jne 0x5092ff
push 0x6e096c
lea ecx, [ebp - 0xfc]
call fcn.00419d50
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x11]
push edx
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x90]
call fcn.00518e70
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xfc]
call fcn.00419eb0
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x5092ff
mov byte [ebp - 0xd4], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x90]
call fcn.00517b50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc4]
call fcn.00517b50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00419eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00419eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00419eb0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00419eb0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
call fcn.00419eb0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.00419eb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x50]
call fcn.00419eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x68]
call fcn.00419eb0
mov al, byte [ebp - 0xd4]
jmp 0x5094e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x90]
call fcn.00517b50
mov byte [ebp - 0xd2], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc4]
call fcn.00517b50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00419eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00419eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00419eb0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00419eb0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
call fcn.00419eb0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.00419eb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x50]
call fcn.00419eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x68]
call fcn.00419eb0
mov al, byte [ebp - 0xd2]
jmp 0x5094e0
mov byte [ebp - 0xd1], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00419eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00419eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00419eb0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00419eb0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
call fcn.00419eb0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.00419eb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x50]
call fcn.00419eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x68]
call fcn.00419eb0
mov al, byte [ebp - 0xd1]
jmp 0x5094e0
mov byte [ebp - 0xd3], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00419eb0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00419eb0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.00419eb0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00419eb0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
call fcn.00419eb0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.00419eb0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x50]
call fcn.00419eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x68]
call fcn.00419eb0
mov al, byte [ebp - 0xd3]
jmp 0x5094e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 0x78