Function at 0x10003eb6
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x1009e756
call fcn.1009dea8
mov edi, ecx
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x30]
call fcn.10003e98
xor eax, eax
lea esi, [edi + 0x2c]
mov dword [ebp - 4], eax
mov ebx, eax
test byte [esi], 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], esi
je 0x10003eff
dec dword [0x100f5dbc]
push 0x100f5dc0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x10004158
test byte [esi], 4
jne 0x10003ee7
test byte [esi], 1
je 0x10003f1d
push edi
push str.HTTP_I_O_0x_08x:_data_available_for_reading.
push 2
push 0xc
call fcn.10042763
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x18], eax
mov ecx, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
call dword [eax + 0x3c]
lea eax, [edi + 0x30]
mov dword [ebp - 0x20], eax
test byte [esi], 0x10
je 0x10003f78
mov ecx, dword [eax]
test ecx, ecx
je 0x10003f78
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
je 0x10003f4f
call dword [sym.imp.fpsrvutl.dll_Ordinal_3826]
mov cl, al
mov eax, dword [ebp - 0x20]
jmp 0x10003f51
xor cl, cl
test cl, cl
jne 0x10003f78
mov esi, dword [eax]
lea ecx, [esi + 0x1c]
call fcn.1002859b
push str.Client_Return
mov ecx, eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_1227]
mov ecx, dword [esi + 0x1c]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4559]
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x10004057
mov eax, dword [0x100f5db8]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10003fc1
test ecx, ecx
je 0x10003fc1
cmp dword [eax + 4], 0
je 0x10003fc1
push 0
lea edx, [ebp - 0x38]
push edx
push ecx
push dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10003fcd
add dword [eax + 0x28], ecx
test byte [esi], 0x10
je 0x10003fe2
mov ecx, edi
call fcn.10004160
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x10004057
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
and dword [ebp - 4], 0
mov ebx, eax
mov dword [ebp - 0x14], ebx
jmp 0x10004047
test ebx, ebx
jne 0x10004057
test byte [esi], 0xc
mov eax, dword [ebp - 0x20]
je 0x10003f30
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
test ebx, ebx
je 0x100040d2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp eax, 0x640014
jne 0x1000409d
push edi
push str.HTTP_I_O_0x_08x:_read_loop_terminated_by_reading_Content_Length_bytes.
push 2
push 0xc
call fcn.10042763
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push 1
call dword [eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, edi
call fcn.10004405
jmp 0x10004144
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
mov ecx, eax
mov byte [ebp - 4], 3
call dword [sym.imp.fpsrvutl.dll_Ordinal_5580]
push eax
push edi
push str.HTTP_I_O_0x_08x:_read_loop_terminated__with_error_status___s_.
push 2
push 0xc
call fcn.10042763
add esp, 0x14
lea ecx, [ebp - 0x34]
call dword [sym.imp.fpsrvutl.dll_Ordinal_3409]
jmp 0x10004141
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1000410f
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
call dword [eax + 0xc]
mov ecx, eax
mov byte [ebp - 4], 4
call dword [sym.imp.fpsrvutl.dll_Ordinal_5580]
push eax
push edi
push str.HTTP_I_O_0x_08x:_read_loop_terminated__with_error_sockstat___s_.
push 2
push 0xc
call fcn.10042763
add esp, 0x14
lea ecx, [ebp - 0x34]
call dword [sym.imp.fpsrvutl.dll_Ordinal_3409]
mov ebx, dword [ebp - 0x30]
jmp 0x10004141
cmp dword [ebp - 0x18], 0
jne 0x1000411d
push edi
push str.HTTP_I_O_0x_08x:_read_loop_terminated__bytes_received0.
jmp 0x10004135
test byte [esi], 4
je 0x1000412a
push edi
push str.HTTP_I_O_0x_08x:_read_loop_terminated_by_PauseReceiving__.
jmp 0x10004135
test byte [esi], 8
je 0x10004141
push edi
push str.HTTP_I_O_0x_08x:_read_loop_terminated_by_Pause__.
push 2
push 0xc
call fcn.10042763
add esp, 0x10
mov dword [ebp - 0x24], ebx
dec dword [0x100f5dbc]
push 0x100f5dc0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x24]
call fcn.1009de13
ret 4