Function at 0x10027205
Capabilities:
Check if file exists

Disassembly:
push 0xd8
mov eax, 0x10043c4c
call fcn.1002e47a
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], edx
cmp eax, edi
jne 0x10027236
xor al, al
jmp 0x10027765
cmp ecx, edi
je 0x1002723c
mov dword [ecx], edi
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
call fcn.10028022
mov dword [ebp - 4], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x64], edi
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov dword [ebp - 0x74], eax
cmp eax, edi
jne 0x1002727f
push str.easy_init_failed
mov ecx, esi
call fcn.100059a4
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x5c]
cmp esi, edi
je 0x1002722f
call fcn.1000108c
jmp 0x1002722f
mov edi, dword [ebp - 0x60]
mov esi, dword [edi + 0x48]
cmp esi, dword [edi + 0x4c]
jbe 0x1002728f
call fcn.1002d8f8
mov eax, dword [edi + 0x3c]
mov ebx, dword [sym.imp.libcurl32.dll_curl_formadd]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
add esi, 0x40
mov eax, dword [ebp - 0x60]
mov edi, dword [eax + 0x4c]
cmp dword [eax + 0x48], edi
jbe 0x100272b1
call fcn.1002d8f8
cmp dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x3c]
je 0x100272c2
cmp dword [ebp - 0x50], eax
je 0x100272c7
call fcn.1002d8f8
cmp dword [ebp - 0x4c], edi
je 0x100273c9
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x100272fe
call fcn.1002d8f8
xor eax, eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax + 0x10]
jb 0x100272eb
call fcn.1002d8f8
mov eax, dword [ebp - 0x4c]
cmp byte [eax], 0
je 0x10027328
cmp dword [esi - 0x24], 0x10
jb 0x10027302
mov ecx, dword [esi - 0x38]
jmp 0x10027305
mov eax, dword [eax]
jmp 0x100272de
lea ecx, [esi - 0x38]
cmp dword [esi + 0x14], 0x10
jb 0x1002730f
mov eax, dword [esi]
jmp 0x10027311
mov eax, esi
push 0x11
push ecx
push 1
push eax
push 0xa
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
call ebx
add esp, 0x1c
jmp 0x1002739e
mov eax, dword [ebp - 0x60]
cmp byte [eax + 0x1c], 0
jne 0x1002739e
cmp dword [esi - 0xc], 0
jbe 0x10027374
cmp dword [esi - 0x24], 0x10
jb 0x10027342
mov ecx, dword [esi - 0x38]
jmp 0x10027345
lea ecx, [esi - 0x38]
cmp dword [esi - 8], 0x10
jb 0x10027350
mov eax, dword [esi - 0x1c]
jmp 0x10027353
lea eax, [esi - 0x1c]
push 0x11
push ecx
push 1
push dword [esi + 0x1c]
push 0xd
push dword [esi + 0x18]
push 0xc
push eax
push 0xe
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
call ebx
add esp, 0x2c
jmp 0x1002739e
cmp dword [esi - 0x24], 0x10
jb 0x1002737f
mov eax, dword [esi - 0x38]
jmp 0x10027382
lea eax, [esi - 0x38]
push 0x11
push dword [esi + 0x1c]
push 6
push dword [esi + 0x18]
push 4
push eax
push 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
call ebx
add esp, 0x24
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x100273c5
call fcn.1002d8f8
xor eax, eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [eax + 0x10]
jb 0x100273b9
call fcn.1002d8f8
add dword [ebp - 0x4c], 0x60
add esi, 0x60
jmp 0x100272a1
mov eax, dword [eax]
jmp 0x100273ac
mov ebx, dword [sym.imp.libcurl32.dll_curl_slist_append]
push str.Expect:
push 0
call ebx
mov dword [ebp - 0x54], eax
mov eax, dword [0x1005b8c0]
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [0x1005b8a8]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [0x1005b8c0]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x1005b8a8]
lea edi, [ebp - 0x80]
lea esi, [ebp - 0x50]
mov dword [ebp - 0x80], eax
call fcn.1000bfa1
test al, al
jne 0x10027494
call fcn.10013ac5
push 0x1004d2bc
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.100140f9
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 1
call fcn.10013ac5
add eax, 0x1c
push eax
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.1001413f
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x10027457
mov eax, dword [eax + 4]
jmp 0x1002745a
add eax, 4
push eax
push dword [ebp - 0x54]
call ebx
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x54], eax
call fcn.10005a12
push 0
push 1
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.10005a12
lea esi, [ebp - 0x50]
call fcn.10012b97
jmp 0x100273f0
xor edi, edi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.10006848
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x60]
cmp byte [esi + 0x1c], 0
je 0x100274fd
push str.Content_Type:_application_x_www_form_urlencoded
push dword [ebp - 0x54]
call ebx
sub esp, 0x18
mov dword [ebp - 0x54], eax
mov eax, esp
mov dword [ebp - 0x4c], esp
lea ecx, [esi + 0x54]
push eax
call fcn.10012653
lea ecx, [ebp - 0xac]
call fcn.1002711c
add esp, 0x20
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.10005912
push edi
push 1
lea ecx, [ebp - 0xac]
call fcn.10005a12
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.10006848
mov byte [ebp - 4], 4
mov eax, dword [0x1005b3a4]
cmp eax, edi
je 0x1002754a
lea ecx, [ebp - 0xac]
push esi
push ecx
call eax
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.10005912
push edi
push 1
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 4
call fcn.10005a12
jmp 0x10027556
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x48]
call fcn.10005912
mov ebx, dword [ebp - 0x74]
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_reset]
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
pop ecx
jae 0x1002756d
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.libcurl32.dll_curl_easy_setopt]
push eax
push 0x2712
push ebx
call esi
add esp, 0xc
push 5
push 0x4e
push ebx
call esi
add esp, 0xc
push 0x1002776b
push 0x4e2b
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x78]
push 0x2711
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x58]
push 0x2728
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x54]
push 0x2727
push ebx
call esi
add esp, 0xc
push 0x1004a92b
push 0x2776
push ebx
call esi
add esp, 0xc
cmp dword [ebp - 0x18], edi
je 0x100275f0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100275e4
lea eax, [ebp - 0x28]
push eax
push 0x271f
push ebx
call esi
add esp, 0xc
cmp dword [ebp - 0x68], edi
je 0x100275ff
push dword [ebp - 0x68]
push 0x2762
jmp 0x10027621
cmp byte [0x1005b2a0], 0
je 0x10027627
push 0x1005b2a0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10027627
push 0x1005b2a0
push 0x272f
push ebx
call esi
add esp, 0xc
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x34], edi
je 0x10027649
cmp dword [eax + 0x38], 0x10
jb 0x1002763a
mov eax, dword [eax + 0x24]
jmp 0x1002763d
add eax, 0x24
push eax
push 0x2734
push ebx
call esi
add esp, 0xc
push 1
push 0x34
push ebx
call esi
add esp, 0xc
cmp byte [0x1005b298], 0
je 0x1002766e
push edi
push 0x40
push ebx
call esi
add esp, 0xc
push edi
push 0x51
push ebx
call esi
add esp, 0xc
cmp dword [0x10059060], edi
je 0x10027695
cmp dword [0x10059064], 0x10
mov eax, dword [0x10059050]
jae 0x10027689
mov eax, 0x10059050
push eax
push 0x2751
push ebx
call esi
add esp, 0xc
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x18], 0x10
jb 0x100276a3
mov eax, dword [eax + 4]
jmp 0x100276a6
add eax, 4
push ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
call dword [sym.imp.libcurl32.dll_curl_easy_perform]
pop ecx
mov esi, eax
cmp dword [ebp - 0x58], edi
je 0x100276d7
push dword [ebp - 0x58]
call dword [sym.imp.libcurl32.dll_curl_formfree]
pop ecx
cmp dword [ebp - 0x54], edi
je 0x100276e6
push dword [ebp - 0x54]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
cmp esi, edi
je 0x1002771e
push esi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp - 0x70]
push eax
call fcn.100059a4
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10005a12
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10005a12
jmp 0x1002726d
cmp dword [ebp - 0x6c], edi
je 0x10027735
push dword [ebp - 0x6c]
push 0x200002
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_getinfo]
add esp, 0xc
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.10005a12
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10005a12
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x5c]
cmp esi, edi
je 0x10027763
call fcn.1000108c
mov al, 1
call fcn.1002e4fd
ret