Function at 0x40fbc0
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 0x40fbf1
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x54], 0
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
test esi, esi
je 0x40ffc8
cmp dword [ebx + 0xc], 4
jne 0x40fca0
mov edi, dword [ebx + 0x20]
xor ebp, ebp
test edi, edi
je 0x40fc15
mov ebp, dword [edi + 0x10]
mov edx, str.Content_Disposition
call sym._search_header
test eax, eax
je 0x40fcb6
test esi, esi
je 0x40fc5b
lea edx, [ebx + 0x28]
mov eax, str.__boundary
test ebp, ebp
je 0x40ffb9
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.Content_Type:__s_s_s
mov dword [esp], edx
call sym._Curl_mime_add_header
test eax, eax
jne 0x40fc95
mov eax, dword [ebx + 0x2c]
mov edx, str.Content_Transfer_Encoding
call sym._search_header
test eax, eax
je 0x40fd48
mov eax, dword [ebx + 0xc]
cmp dword [ebx + 0x4c], 1
jne 0x40fc86
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x50], edx
test edi, edi
je 0x40fc93
cmp eax, 4
je 0x40fe50
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 0x40fc27
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40fe30
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]
je 0x40fd88
test eax, eax
je 0x40fee0
call sym._escape_string
mov edx, eax
test eax, eax
je 0x40ff00
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x40], eax
test eax, eax
je 0x4100b0
mov dword [esp + 0x3c], edx
call sym._escape_string
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x40ff02
mov dword [esp + 0x40], eax
mov ecx, 0x45e25f
mov dword [esp + 0x4c], str.__filename_
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], 0x45e25f
mov dword [esp + 0x44], str.__name_
jmp 0x40fdbc
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x40feb0
mov eax, dword [eax]
test eax, eax
je 0x40fc70
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 0x40fc70
jmp 0x40fc95
test eax, eax
jne 0x40fce9
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x40feef
mov eax, 0x45e26e
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], eax
mov ecx, eax
mov edx, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], str.Content_Disposition:__s_s_s_s_s_s_s
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
lea eax, [ebx + 0x28]
mov dword [esp], eax
call sym._Curl_mime_add_header
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [0x45bc90]
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [0x45bc90]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40fc27
jmp 0x40fc95
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4100d0
mov dword [esp + 0x78], str.attachment
jmp 0x40fcc2
mov dword [esp], esi
mov esi, str.form_data
mov dword [esp + 4], 0x45e349
call sym._Curl_strcasecompare
mov ebx, dword [edi + 8]
test eax, eax
mov eax, 0
cmove esi, eax
test ebx, ebx
je 0x40fc93
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 0x40fc95
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40fe7a
jmp 0x40fc93
mov eax, dword [ebx + 0xc]
test esi, esi
je 0x40fc73
mov edx, dword [esp + 0x7c]
test edx, edx
jne 0x40fc73
cmp eax, 4
je 0x40fc73
mov eax, str.8bit
jmp 0x40fd5d
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x40fc27
mov eax, dword [esp + 0x3c]
call sym._escape_string
test eax, eax
jne 0x410050
xor edx, edx
mov dword [esp], edx
call dword [0x45bc90]
mov dword [esp], 0
call dword [0x45bc90]
mov eax, 0x1b
jmp 0x40fc95
mov ecx, dword [esp + 0x74]
mov eax, dword [ebx + 0xc]
test ecx, ecx
jne 0x40ffff
cmp eax, 2
je 0x40ffe8
cmp eax, 4
je 0x410040
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 0x410110
mov eax, dword [esp + 0x74]
test eax, eax
je 0x410018
mov eax, dword [esp + 0x74]
mov dword [esp + 4], str.text_plain
mov dword [esp], eax
call sym._Curl_strcasecompare
test eax, eax
je 0x40ff99
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x410018
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x410018
mov eax, dword [ebx + 0x2c]
mov edx, str.Content_Disposition
call sym._search_header
mov edi, eax
test eax, eax
je 0x4100c0
mov esi, dword [esp + 0x74]
lea edx, [ebx + 0x28]
xor edi, edi
mov ebp, 0x45e26e
mov eax, ebp
jmp 0x40fc3b
mov edx, 0x45e1a3
call sym._search_header
mov esi, eax
test eax, eax
je 0x40ff28
mov eax, dword [ebx + 0x2c]
jmp 0x40fbff
mov eax, dword [ebx + 0x34]
mov dword [esp], eax
call sym._Curl_mime_contenttype
mov dword [esp + 0x74], eax
test eax, eax
je 0x410080
cmp dword [ebx + 0xc], 4
jne 0x40ff6e
mov esi, dword [esp + 0x74]
mov eax, dword [ebx + 0x2c]
jmp 0x40fc09
mov eax, dword [ebx + 0x2c]
mov edx, str.Content_Disposition
xor edi, edi
call sym._search_header
test eax, eax
jne 0x40fc5b
xor ebp, ebp
xor edi, edi
jmp 0x40fcb6
mov eax, dword [ebx + 0x2c]
mov esi, str.multipart_mixed
jmp 0x40fc09
mov edx, 0x45e26e
mov dword [esp + 0x40], eax
mov ecx, 0x45e25f
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], str.__filename_
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edx
jmp 0x40fdbc
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._Curl_mime_contenttype
mov dword [esp + 0x74], eax
test eax, eax
jne 0x40ffff
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x74], 0x45e293
test edx, edx
jne 0x40ffff
jmp 0x40ffdc
mov eax, 0x45e26e
mov dword [esp + 0x4c], eax
mov ecx, eax
jmp 0x40fd2d
mov esi, dword [esp + 0x74]
xor ebp, ebp
jmp 0x40fcb6
mov ecx, dword [ebx + 0x38]
test ecx, ecx
jne 0x40fe3b
test esi, esi
je 0x40fc5b
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.multipart_
mov dword [esp], esi
call sym._Curl_strncasecompare
test eax, eax
je 0x40fe3b
jmp 0x40fc2b
mov esi, eax
mov eax, dword [ebx + 0x2c]
jmp 0x40fc09