Function at 0x572a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5df310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x264], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x24c], edi
mov dword [ecx], edi
cmp eax, edi
jne 0x572aee
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050fc14
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00572a10
mov ebx, eax
mov dword [ebp - 0x250], ebx
test ebx, ebx
jne 0x572b14
lea eax, [ebx + 0x1b]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050fc14
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x572b1d
mov esi, str.Content_Type:_multipart_form_data
push ebx
push esi
push str._s__boundary_s_r_n
push 0
lea esi, [ebp - 0x238]
call fcn.005726d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x572b57
push ebx
call dword [0x5e11d4]
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050fc14
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x254], eax
or edi, dword [ebp - 0x23c]
je 0x572b95
lea ecx, [ebp - 0x240]
push 0x5b20e0
push ecx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x573168
mov ebx, dword [ebp - 0x250]
push ebx
lea edx, [ebp - 0x240]
push str.___s_r_n
push edx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x573168
lea eax, [ebp - 0x240]
push str.Content_Disposition:_form_data__name_
push eax
call fcn.005726d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x573168
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 8]
push ecx
mov edx, esi
push ebx
push edx
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x240]
call fcn.005725a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x573168
lea eax, [ebp - 0x240]
push 0x5af8b4
push eax
call fcn.005726d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x573168
mov esi, dword [ebp - 0x244]
cmp dword [esi + 0x24], eax
je 0x572c7c
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x572c3e
push eax
call dword [0x5e11d4]
add esp, 4
call fcn.00572a10
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x573136
push eax
lea ecx, [ebp - 0x240]
push str._r_nContent_Type:_multipart_mixed__boundary_s_r_n
push ecx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x573168
mov esi, dword [ebp - 0x244]
mov dword [ebp - 0x248], esi
cmp dword [esi + 0x24], 0
je 0x572d31
mov eax, dword [ebp - 0x248]
xor edi, edi
cmp dword [eax + 0x2c], edi
jne 0x572cfe
mov eax, dword [eax + 0xc]
push eax
call dword [0x5e11dc]
mov esi, eax
add esp, 4
test esi, esi
je 0x573136
push 0x2f
push esi
mov edi, esi
call fcn.0052c800
push 0x5c
push esi
mov ebx, eax
call fcn.0052c800
add esp, 0x10
test ebx, ebx
je 0x572cdc
test eax, eax
je 0x572cd7
cmp ebx, eax
jbe 0x572ce0
mov eax, ebx
jmp 0x572ce0
lea edi, [ebx + 1]
jmp 0x572ce3
test eax, eax
je 0x572ce3
lea edi, [eax + 1]
push edi
call dword [0x5e11dc]
push esi
mov edi, eax
call dword [0x5e11d4]
add esp, 8
test edi, edi
je 0x573136
mov edx, dword [ebp - 0x248]
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x572d0d
mov eax, edi
push eax
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x240]
push str._r_n___s_r_nContent_Disposition:_attachment__filename__s_
push ecx
lea esi, [ebp - 0x238]
call fcn.005726d0
add esp, 0x10
jmp 0x572d7b
mov ecx, dword [esi + 0x28]
test cl, 0x51
je 0x572d93
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x572d55
test cl, 1
je 0x572d8b
test eax, eax
jne 0x572d55
mov eax, dword [esi + 0xc]
call fcn.00572800
mov edi, eax
jmp 0x572d57
xor edi, edi
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x572d60
mov eax, edi
push eax
lea edx, [ebp - 0x240]
push str.__filename__s_
push edx
lea esi, [ebp - 0x238]
call fcn.005726d0
add esp, 0xc
mov ebx, eax
test edi, edi
je 0x572d8b
push edi
call dword [0x5e11d4]
add esp, 4
test ebx, ebx
jne 0x573168
mov eax, dword [ebp - 0x248]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x572dc5
push eax
lea ecx, [ebp - 0x240]
push str._r_nContent_Type:__s
push ecx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x573168
mov edx, dword [ebp - 0x248]
mov edi, dword [edx + 0x20]
test edi, edi
je 0x572e02
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x240]
push str._r_n_s
push ecx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x573168
mov edi, dword [edi + 4]
test edi, edi
jne 0x572dd2
jmp 0x572e0a
test ebx, ebx
jne 0x573168
lea edx, [ebp - 0x240]
push str._r_n_r_n
push edx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x573168
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x28]
test cl, 3
jne 0x572ee0
test cl, 0x10
je 0x572e66
mov ecx, dword [eax + 0x18]
push ecx
mov edx, esi
push 1
push edx
mov edx, dword [eax + 0x14]
lea ecx, [ebp - 0x240]
call fcn.005725a0
add esp, 0xc
mov ebx, eax
jmp 0x5730b9
test cl, 0x40
je 0x572ebb
mov edi, dword [eax + 0x10]
mov esi, dword [eax + 0x30]
push 0x10
call dword [0x5e11d0]
xor ebx, ebx
add esp, 4
cmp eax, ebx
jne 0x572e8c
mov ebx, 0x1b
jmp 0x5730b9
mov ecx, dword [ebp - 0x238]
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 4], 2
mov dword [ebp - 0x238], eax
cmp ecx, ebx
je 0x572eaa
mov dword [ecx], eax
add dword [ebp - 0x240], edi
adc dword [ebp - 0x23c], ebx
jmp 0x5730b9
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x238]
push 1
push edx
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x240]
call fcn.005725a0
add esp, 0xc
mov ebx, eax
jmp 0x5730b9
mov edi, dword [ebp - 0x248]
mov eax, dword [edi + 0xc]
push eax
push 0x5ade7c
call sym.PlatSoftware.exe_curl_strequal
add esp, 8
test eax, eax
je 0x572f0a
call fcn.005217d1
mov esi, eax
mov dword [ebp - 0x258], esi
jmp 0x572f23
mov ecx, dword [edi + 0xc]
push 0x5af8b0
push ecx
call fcn.00536f3a
add esp, 8
mov esi, eax
mov dword [ebp - 0x258], eax
test esi, esi
je 0x57308c
call fcn.005217d1
push esi
cmp esi, eax
je 0x572fc2
call fcn.005159e3
mov edi, dword [edi + 0xc]
push 0x10
call dword [0x5e11d0]
mov esi, eax
add esp, 8
test esi, esi
jne 0x572f5a
lea ebx, [eax + 0x1b]
jmp 0x5730b9
mov eax, dword [ebp - 0x238]
mov dword [esi], 0
mov dword [esi + 8], edi
mov dword [esi + 4], 3
mov dword [ebp - 0x238], esi
test eax, eax
je 0x572f7c
mov dword [eax], esi
mov edx, dword [esi + 8]
push edx
push 0x5ade7c
call sym.PlatSoftware.exe_curl_strequal
add esp, 8
test eax, eax
jne 0x572fbb
mov esi, dword [esi + 8]
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.00575177
add esp, 8
test eax, eax
jne 0x572fbb
mov eax, dword [ebp - 0x220]
cdq
add dword [ebp - 0x240], eax
adc dword [ebp - 0x23c], edx
xor ebx, ebx
jmp 0x5730b9
push 0x200
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.00515ca1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5730b9
xor ebx, ebx
push 0x10
call dword [0x5e11d0]
mov edi, eax
add esp, 4
test edi, edi
je 0x573085
lea edx, [esi + 1]
push edx
mov dword [edi], ebx
call dword [0x5e11d0]
add esp, 4
mov dword [edi + 8], eax
test eax, eax
je 0x57307b
push esi
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.00514820
mov edx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 0xc], esi
mov byte [esi + edx], bl
mov dword [edi + 4], 1
cmp dword [ebp - 0x238], ebx
je 0x573040
mov eax, dword [ebp - 0x238]
mov dword [eax], edi
mov ecx, dword [ebp - 0x258]
add dword [ebp - 0x240], esi
push ecx
push 0x200
adc dword [ebp - 0x23c], ebx
lea edx, [ebp - 0x204]
push 1
push edx
mov dword [ebp - 0x238], edi
call fcn.00515ca1
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x572fe4
jmp 0x5730b9
push edi
call dword [0x5e11d4]
add esp, 4
mov ebx, 0x1b
jmp 0x5730b9
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x5730a8
mov ecx, dword [edi + 0xc]
push ecx
push str.couldnt_open_file___s__n
push eax
call fcn.00552c50
add esp, 0xc
mov edx, dword [ebp - 0x25c]
mov dword [edx], 0
mov ebx, 0x1a
mov eax, dword [ebp - 0x248]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x5730df
test ebx, ebx
jne 0x573168
mov esi, dword [ebp - 0x244]
jmp 0x572c82
test ebx, ebx
jne 0x573168
mov edi, dword [ebp - 0x244]
cmp dword [edi + 0x24], ebx
je 0x573119
mov ecx, dword [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x240]
push str._r_n___s__
push edx
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x573168
mov eax, dword [edi]
mov dword [ebp - 0x244], eax
test eax, eax
je 0x57313d
mov ebx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x240]
jmp 0x572b63
mov ebx, 0x1b
jmp 0x573168
test ebx, ebx
jne 0x573168
mov edi, dword [ebp - 0x250]
push edi
lea eax, [ebp - 0x240]
push str._r_n___s___r_n
push eax
lea esi, [ebp - 0x238]
call fcn.005726d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5731ae
lea ecx, [ebp - 0x254]
push ecx
call fcn.00572730
mov eax, dword [ebp - 0x24c]
add esp, 4
test eax, eax
je 0x57318b
push eax
call dword [0x5e11d4]
add esp, 4
mov edx, dword [ebp - 0x250]
push edx
call dword [0x5e11d4]
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050fc14
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x5731d9
push eax
call dword [0x5e11d4]
add esp, 4
push edi
call dword [0x5e11d4]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x25c]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0050fc14
mov esp, ebp
pop ebp
ret