Function at 0x418516
Capabilities:
Check if file exists

Disassembly:
push 0xdc
mov eax, 0x47ec8b
call fcn.0046638a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], eax
cmp ecx, esi
jne 0x418546
xor al, al
jmp 0x418a6a
cmp eax, esi
je 0x41854c
mov dword [eax], esi
push ecx
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.00419477
mov dword [ebp - 4], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x6c], esi
call dword [sym.imp.libcurl32.dll_curl_easy_init]
mov dword [ebp - 0x80], eax
cmp eax, esi
jne 0x418591
push str.easy_init_failed
mov ecx, edi
call fcn.004047ef
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x64], esi
je 0x41853f
mov esi, dword [ebp - 0x64]
call fcn.004011e7
jmp 0x41853f
mov edi, dword [ebp - 0x68]
push dword [edi + 0x48]
add edi, 0x3c
lea esi, [ebp - 0x60]
call fcn.0040873c
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], ebx
add ebx, 0x40
push dword [edi + 0x10]
lea esi, [ebp - 0x74]
call fcn.0040873c
cmp dword [ebp - 0x60], 0
je 0x4185c4
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x74]
je 0x4185c9
call fcn.00465132
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x70]
je 0x4186d7
mov esi, dword [ebp - 0x60]
test esi, esi
jne 0x418603
call fcn.00465132
xor eax, eax
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax + 0x10]
jb 0x4185f0
call fcn.00465132
mov eax, dword [ebp - 0x50]
cmp byte [eax], 0
je 0x418631
cmp dword [ebx - 0x24], 0x10
jb 0x418607
mov ecx, dword [ebx - 0x38]
jmp 0x41860a
mov eax, dword [esi]
jmp 0x4185e3
lea ecx, [ebx - 0x38]
cmp dword [ebx + 0x14], 0x10
jb 0x418614
mov eax, dword [ebx]
jmp 0x418616
mov eax, ebx
push 0x11
push ecx
push 1
push eax
push 0xa
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.libcurl32.dll_curl_formadd]
add esp, 0x1c
jmp 0x4186af
mov eax, dword [ebp - 0x68]
cmp byte [eax + 0x1c], 0
jne 0x4186af
cmp dword [ebx - 0xc], 0
jbe 0x418681
cmp dword [ebx - 0x24], 0x10
jb 0x41864b
mov ecx, dword [ebx - 0x38]
jmp 0x41864e
lea ecx, [ebx - 0x38]
cmp dword [ebx - 8], 0x10
jb 0x418659
mov eax, dword [ebx - 0x1c]
jmp 0x41865c
lea eax, [ebx - 0x1c]
push 0x11
push ecx
push 1
push dword [ebx + 0x1c]
push 0xd
push dword [ebx + 0x18]
push 0xc
push eax
push 0xe
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.libcurl32.dll_curl_formadd]
add esp, 0x2c
jmp 0x4186af
cmp dword [ebx - 0x24], 0x10
jb 0x41868c
mov eax, dword [ebx - 0x38]
jmp 0x41868f
lea eax, [ebx - 0x38]
push 0x11
push dword [ebx + 0x1c]
push 6
push dword [ebx + 0x18]
push 4
push eax
push 1
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.libcurl32.dll_curl_formadd]
add esp, 0x24
test esi, esi
jne 0x4186d3
call fcn.00465132
xor eax, eax
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax + 0x10]
jb 0x4186c7
call fcn.00465132
add dword [ebp - 0x50], 0x60
add ebx, 0x60
jmp 0x4185ab
mov eax, dword [esi]
jmp 0x4186ba
mov ebx, dword [sym.imp.libcurl32.dll_curl_slist_append]
push str.Expect:
push 0
call ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [0x4a3914]
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [0x4a38fc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
mov eax, dword [0x4a3914]
mov dword [ebp - 0x70], eax
mov eax, dword [0x4a38fc]
lea edi, [ebp - 0x74]
lea esi, [ebp - 0x54]
mov dword [ebp - 0x74], eax
call fcn.00412618
test al, al
jne 0x4187a2
call fcn.00416cce
push 0x48831c
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.004193c2
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00416cce
add eax, 0x1c
push eax
lea eax, [ebp - 0xcc]
push edi
push eax
call fcn.00419408
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x418765
mov eax, dword [eax + 4]
jmp 0x418768
add eax, 4
push eax
push dword [ebp - 0x5c]
call ebx
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x5c], eax
call fcn.00404863
push 0
push 1
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0
call fcn.00404863
lea esi, [ebp - 0x54]
call fcn.00405091
jmp 0x4186fe
xor esi, esi
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00404b61
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x68]
cmp byte [edi + 0x1c], 0
je 0x41880c
push str.Content_Type:_application_x_www_form_urlencoded
push dword [ebp - 0x5c]
call ebx
sub esp, 0x18
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x50], esp
mov eax, esp
lea ecx, [edi + 0x54]
push ecx
push eax
call fcn.004045ff
lea ecx, [ebp - 0xb0]
call fcn.0041842d
add esp, 0x20
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040475d
push esi
push 1
lea ecx, [ebp - 0xb0]
call fcn.00404863
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.00404b61
mov byte [ebp - 4], 4
mov eax, dword [0x4a317c]
cmp eax, esi
je 0x418859
lea ecx, [ebp - 0xb0]
push edi
push ecx
call eax
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0040475d
push esi
push 1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.00404863
jmp 0x418865
push 0xffffffffffffffff
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.0040475d
mov ebx, dword [ebp - 0x80]
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_reset]
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
pop ecx
jae 0x41887c
lea eax, [ebp - 0x48]
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 0x418a70
push 0x4e2b
push ebx
call esi
add esp, 0xc
push dword [ebp - 0x84]
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 - 0x5c]
push 0x2727
push ebx
call esi
add esp, 0xc
push 0x485f3b
push 0x2776
push ebx
call esi
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x418903
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4188f7
lea eax, [ebp - 0x2c]
push eax
push 0x271f
push ebx
call esi
add esp, 0xc
cmp byte [0x4a3078], 0
je 0x41892b
push 0x4a3078
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41892b
push 0x4a3078
push 0x272f
push ebx
call esi
add esp, 0xc
cmp dword [edi + 0x34], 0
je 0x41894b
cmp dword [edi + 0x38], 0x10
jb 0x41893c
mov eax, dword [edi + 0x24]
jmp 0x41893f
lea eax, [edi + 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 [0x4a3070], 0
je 0x418972
push 0
push 0x40
push ebx
call esi
add esp, 0xc
push 0
push 0x51
push ebx
call esi
add esp, 0xc
cmp dword [0x4a0120], 0
je 0x41899a
cmp dword [0x4a0124], 0x10
mov eax, dword [0x4a0110]
jae 0x41898e
mov eax, 0x4a0110
push eax
push 0x2751
push ebx
call esi
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x4189a5
mov edi, dword [edi + 4]
jmp 0x4189a8
add edi, 4
xor esi, esi
push ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
call dword [sym.imp.libcurl32.dll_curl_easy_perform]
pop ecx
mov edi, eax
cmp dword [ebp - 0x58], esi
je 0x4189db
push dword [ebp - 0x58]
call dword [sym.imp.libcurl32.dll_curl_formfree]
pop ecx
cmp dword [ebp - 0x5c], esi
je 0x4189ea
push dword [ebp - 0x5c]
call dword [sym.imp.libcurl32.dll_curl_slist_free_all]
pop ecx
cmp edi, esi
je 0x418a22
push edi
call dword [sym.imp.libcurl32.dll_curl_easy_strerror]
pop ecx
mov ecx, dword [ebp - 0x7c]
push eax
call fcn.004047ef
push ebx
call dword [sym.imp.libcurl32.dll_curl_easy_cleanup]
pop ecx
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404863
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00404863
jmp 0x41857e
cmp dword [ebp - 0x78], esi
je 0x418a39
push dword [ebp - 0x78]
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 esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.00404863
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00404863
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x64], esi
je 0x418a68
mov esi, dword [ebp - 0x64]
call fcn.004011e7
mov al, 1
call fcn.0046640d
ret