Function at 0x40fb80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sym._curl_slist_free_all
cmp dword [ebx + 0x4c], 1
mov dword [ebx + 0x28], 0
jne 0x40fbb1
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
test esi, esi
je 0x40fee0
cmp dword [ebx + 0xc], 4
jne 0x40fc60
mov edi, dword [ebx + 0x20]
xor ebp, ebp
test edi, edi
je 0x40fbd5
mov ebp, dword [edi + 0x10]
mov edx, str.Content_Disposition
call sym._search_header
test eax, eax
je 0x40fc76
test esi, esi
je 0x40fc1b
lea eax, [ebx + 0x28]
test ebp, ebp
je 0x40ff00
mov edx, str.__boundary
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.Content_Type:__s_s_s
mov dword [esp], eax
call sym._Curl_mime_add_header
test eax, eax
jne 0x40fc55
mov eax, dword [ebx + 0x2c]
mov edx, str.Content_Transfer_Encoding
call sym._search_header
test eax, eax
je 0x40fd50
mov eax, dword [ebx + 0xc]
cmp dword [ebx + 0x4c], 1
jne 0x40fc46
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x50], edx
test edi, edi
je 0x40fc53
cmp eax, 4
je 0x40fe10
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, str.Content_Disposition
xor ebp, ebp
xor edi, edi
call sym._search_header
test eax, eax
jne 0x40fbe7
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40fdf8
mov eax, dword [esp + 0x78]
mov dword [esp + 4], str.attachment
mov dword [esp], eax
call sym._curl_strequal
test eax, eax
mov eax, dword [ebx + 0x38]
jne 0x40fd90
test eax, eax
jne 0x40fd98
mov ecx, dword [ebx + 0x34]
test ecx, ecx
jne 0x40feab
mov eax, 0x46126e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov edx, 0x46126e
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], str.Content_Disposition:__s_s_s_s_s_s_s
mov dword [esp + 8], eax
lea eax, [ebx + 0x28]
mov dword [esp], eax
call sym._Curl_mime_add_header
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [0x45e810]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
call dword [0x45e810]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40fbe7
jmp 0x40fc55
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x40fe70
mov eax, dword [eax]
test eax, eax
je 0x40fc30
mov dword [esp + 8], eax
lea eax, [ebx + 0x28]
mov dword [esp + 4], str.Content_Transfer_Encoding:__s
mov dword [esp], eax
call sym._Curl_mime_add_header
test eax, eax
je 0x40fc30
jmp 0x40fc55
test eax, eax
je 0x40fea0
call sym._escape_string
mov edx, eax
test eax, eax
je 0x40feba
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x410050
mov dword [esp + 0x38], eax
mov eax, ecx
call sym._escape_string
mov edx, dword [esp + 0x38]
test eax, eax
je 0x40febc
mov dword [esp + 0x4c], edx
mov ecx, eax
mov dword [esp + 0x3c], 0x46125f
mov dword [esp + 0x38], str.__filename_
mov dword [esp + 0x48], 0x46125f
mov dword [esp + 0x44], str.__name_
jmp 0x40fcd6
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x410090
mov dword [esp + 0x78], str.attachment
jmp 0x40fc82
mov dword [esp], esi
mov esi, str.form_data
mov dword [esp + 4], 0x461349
call sym._Curl_strcasecompare
mov ebx, dword [edi + 8]
test eax, eax
mov eax, 0
cmove esi, eax
test ebx, ebx
je 0x40fc53
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._Curl_mime_prepare_headers
test eax, eax
jne 0x40fc55
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40fe3a
jmp 0x40fc53
mov eax, dword [ebx + 0xc]
test esi, esi
je 0x40fc33
mov edx, dword [esp + 0x7c]
test edx, edx
jne 0x40fc33
cmp eax, 4
je 0x40fc33
mov eax, str.8bit
jmp 0x40fd65
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x40fbe7
mov eax, ecx
call sym._escape_string
test eax, eax
jne 0x410000
xor edx, edx
mov dword [esp], edx
call dword [0x45e810]
mov dword [esp], 0
call dword [0x45e810]
mov eax, 0x1b
jmp 0x40fc55
mov edx, 0x4611a3
call sym._search_header
mov esi, eax
test eax, eax
je 0x40ff10
mov eax, dword [ebx + 0x2c]
jmp 0x40fbbf
mov ebp, 0x46126e
mov edx, ebp
jmp 0x40fbfb
mov ecx, dword [esp + 0x74]
mov eax, dword [ebx + 0xc]
test ecx, ecx
jne 0x40ffbb
cmp eax, 2
je 0x40ffa8
cmp eax, 4
je 0x40fff0
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sym._Curl_mime_contenttype
cmp dword [ebx + 0xc], 4
mov dword [esp + 0x74], eax
je 0x4100d0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x40ffd0
mov eax, dword [esp + 0x74]
mov dword [esp + 4], str.text_plain
mov dword [esp], eax
call sym._Curl_strcasecompare
test eax, eax
je 0x40ff79
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x40ffd0
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x40ffd0
mov eax, dword [ebx + 0x2c]
mov edx, str.Content_Disposition
call sym._search_header
mov edi, eax
test eax, eax
je 0x410080
mov ebp, 0x46126e
mov esi, dword [esp + 0x74]
lea eax, [ebx + 0x28]
xor edi, edi
mov edx, ebp
jmp 0x40fbfb
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sym._Curl_mime_contenttype
mov dword [esp + 0x74], eax
test eax, eax
je 0x410020
cmp dword [ebx + 0xc], 4
jne 0x40ff52
mov esi, dword [esp + 0x74]
mov eax, dword [ebx + 0x2c]
jmp 0x40fbc9
mov eax, dword [ebx + 0x2c]
mov edx, str.Content_Disposition
xor edi, edi
call sym._search_header
test eax, eax
jne 0x40fc1b
xor ebp, ebp
xor edi, edi
jmp 0x40fc76
mov eax, dword [ebx + 0x2c]
mov esi, str.multipart_mixed
jmp 0x40fbc9
mov dword [esp + 0x3c], 0x46125f
mov ecx, eax
mov dword [esp + 0x38], str.__filename_
jmp 0x40fcc1
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._Curl_mime_contenttype
mov dword [esp + 0x74], eax
test eax, eax
jne 0x40ffbb
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x74], 0x461293
test edx, edx
jne 0x40ffbb
jmp 0x40fef0
mov dword [esp + 0x4c], eax
mov eax, 0x46126e
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], 0x46125f
mov dword [esp + 0x44], str.__name_
jmp 0x40fcd6
mov esi, dword [esp + 0x74]
xor ebp, ebp
jmp 0x40fc76
mov ecx, dword [ebx + 0x38]
test ecx, ecx
jne 0x40fe03
test esi, esi
je 0x40fc1b
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.multipart_
mov dword [esp], esi
call sym._Curl_strncasecompare
test eax, eax
je 0x40fe03
jmp 0x40fbeb
mov esi, eax
mov eax, dword [ebx + 0x2c]
jmp 0x40fbc9