Function at 0x4054c0
Capabilities:
Get file size
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x20cc
call fcn.00407068
mov ecx, 0xa
sub esp, eax
lea edi, [ebp - 0x2074]
lea ebx, [ebp - 0x204c]
mov eax, dword [esp + eax]
mov dword [ebp - 0x20a0], edx
mov dword [ebp - 0x2090], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, 0xf
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp], str.wininet.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov esi, eax
test eax, eax
je 0x405a90
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [esp + 4], str.InternetOpenA
mov dword [esp], eax
call edi
sub esp, 8
mov dword [ebp - 0x2094], eax
mov dword [esp + 4], str.InternetConnectA
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x2098], eax
mov dword [esp + 4], str.HttpOpenRequestA
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x209c], eax
mov dword [esp + 4], str.HttpSendRequestExA
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x20a4], eax
mov dword [esp + 4], str.InternetWriteFile
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x20ac], eax
mov dword [esp + 4], str.HttpEndRequestA
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x20b0], eax
mov dword [esp + 4], str.InternetReadFile
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x20bc], eax
mov dword [esp + 4], str.InternetCloseHandle
mov dword [esp], esi
call edi
mov edx, dword [ebp - 0x2094]
mov dword [ebp - 0x2088], eax
sub esp, 8
test edx, edx
je 0x405bf8
mov ecx, dword [ebp - 0x2098]
test ecx, ecx
je 0x405bf8
mov edx, dword [ebp - 0x209c]
test edx, edx
je 0x405bf8
mov ecx, dword [ebp - 0x20a4]
test ecx, ecx
je 0x405bf8
mov edx, dword [ebp - 0x20b0]
test edx, edx
je 0x405bf8
mov ecx, dword [ebp - 0x20ac]
test ecx, ecx
je 0x405bf8
mov edx, dword [ebp - 0x20bc]
test edx, edx
sete dl
test eax, eax
sete al
or dl, al
mov byte [ebp - 0x208c], dl
jne 0x405bf8
mov ecx, dword [ebp - 0x2090]
test ecx, ecx
je 0x405c50
mov dword [esp + 4], str.InternetCrackUrlA
mov dword [esp], esi
call edi
sub esp, 8
mov edi, eax
test eax, eax
je 0x405bf8
mov dword [ebp - 0x204c], 0x3c
mov eax, dword [ebp - 0x2090]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strlen]
add eax, 1
mov dword [ebp - 0x2014], eax
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2024], eax
mov dword [ebp - 0x202c], eax
mov dword [ebp - 0x2038], eax
mov dword [ebp - 0x2044], eax
mov dword [esp], eax
call sym._xalloc
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp - 0x2038]
mov dword [esp], eax
call sym._xalloc
mov dword [ebp - 0x203c], eax
mov eax, dword [ebp - 0x202c]
mov dword [esp], eax
call sym._xalloc
mov dword [ebp - 0x2030], eax
mov eax, dword [ebp - 0x2024]
mov dword [esp], eax
call sym._xalloc
mov dword [ebp - 0x2028], eax
mov eax, dword [ebp - 0x201c]
mov dword [esp], eax
call sym._xalloc
mov dword [ebp - 0x2020], eax
mov eax, dword [ebp - 0x2014]
mov dword [esp], eax
call sym._xalloc
mov dword [ebp - 0x2018], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2090]
mov dword [esp], eax
call edi
sub esp, 0x10
test eax, eax
je 0x405d40
mov eax, dword [ebp - 0x2040]
mov edx, dword [ebp - 0x2018]
sub eax, 3
cmp eax, 1
ja 0x405bd0
cmp byte [edx], 0
jne 0x405bd0
mov dword [esp + 0x18], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp - 0x20a0]
mov dword [esp], eax
call ebx
mov dword [ebp - 0x2090], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x405cb8
movzx edx, word [ebp - 0x2034]
mov ecx, str.http
mov eax, str.https
cmp dword [ebp - 0x2040], 3
cmove eax, ecx
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x203c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], str.Opening__s_connection_to__s:_d
mov dword [esp], 0
call dbg.report
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.Winetest_Shell
mov eax, dword [ebp - 0x2094]
call eax
mov dword [ebp - 0x20b4], eax
sub esp, 0x14
test eax, eax
je 0x40604e
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov eax, dword [ebp - 0x2028]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2030]
mov dword [esp + 0xc], eax
movzx eax, word [ebp - 0x2034]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x203c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20b4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2098]
call eax
mov dword [ebp - 0x20b8], eax
sub esp, 0x20
test eax, eax
je 0x4060ab
cmp dword [ebp - 0x2040], 4
mov edx, 0x84880300
mov eax, 0x84080300
mov dword [esp + 0x1c], 0
cmove eax, edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x2020]
mov dword [esp + 4], str.POST
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x209c]
call eax
mov dword [ebp - 0x20a8], eax
sub esp, 0x20
test eax, eax
je 0x405d63
mov dword [esp + 4], str.Sending_request
mov dword [esp], 0
call dbg.report
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2090]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x2098], eax
mov ebx, eax
mov eax, dword [ebp - 0x20a0]
sub esp, 8
mov dword [esp + 4], str.____8___cut_here__8____r_nContent_Disposition:_form_data__name_reportfile___filename__s__r_nContent_Type:_application_octet_stream_r_n_r_n
mov dword [esp + 8], eax
lea eax, [ebp - 0x207c]
mov dword [esp], eax
call dbg.strmake
lea edx, [ebp - 0x2070]
mov ecx, 9
mov dword [ebp - 0x2074], 0x28
mov dword [ebp - 0x2094], eax
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x207c]
lea eax, [ebx + eax + 0x72]
mov dword [ebp - 0x2058], eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x2078]
mov dword [esp + 4], global_extra_headers
mov dword [esp], eax
call dbg.strmake
mov dword [ebp - 0x206c], eax
mov eax, dword [ebp - 0x2078]
mov dword [ebp - 0x2068], eax
lea eax, [ebp - 0x2074]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20a4]
call eax
sub esp, 0x14
test eax, eax
je 0x406028
lea ebx, [ebp - 0x2080]
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x207c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2094]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20ac]
call eax
sub esp, 0x10
test eax, eax
je 0x405a43
mov eax, dword [ebp - 0x207c]
cmp dword [ebp - 0x2080], eax
je 0x405daf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_write_body_data__error__u
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
mov byte [ebp - 0x2098], 1
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov edi, 1
mov byte [ebp - 0x208c], 1
mov dword [ebp - 0x209c], 1
jmp 0x405aec
mov dword [ebp - 0x20a8], 0
xor edi, edi
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x20b8], 0
mov dword [ebp - 0x20b4], 0
mov dword [ebp - 0x2094], 0
mov byte [ebp - 0x2098], 0
mov byte [ebp - 0x208c], 0
mov dword [ebp - 0x2090], 0xffffffff
mov dword [ebp - 0x2088], 0
mov dword [ebp - 0x209c], 0
mov eax, dword [ebp - 0x2048]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x203c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2030]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2028]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2020]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2018]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x206c]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2094]
mov dword [esp], eax
call ebx
cmp byte [ebp - 0x208c], 0
je 0x405b61
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2088]
call eax
sub esp, 4
mov eax, edi
test al, al
je 0x405b7b
mov eax, dword [ebp - 0x20b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2088]
call eax
sub esp, 4
cmp byte [ebp - 0x2098], 0
je 0x405b98
mov eax, dword [ebp - 0x20b4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2088]
call eax
sub esp, 4
mov eax, dword [ebp - 0x2090]
cmp eax, 0xffffffff
je 0x405baf
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test esi, esi
je 0x405bbf
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
mov eax, dword [ebp - 0x209c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x2048]
mov dword [esp + 4], str.Cant_submit_report_to_scheme__s_or_extra_info__s
mov dword [esp + 8], eax
mov dword [esp], 7
call dbg.report
lea esi, [esi]
mov byte [ebp - 0x2098], 0
xor edi, edi
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov byte [ebp - 0x208c], 0
mov dword [ebp - 0x20a8], 0
mov dword [ebp - 0x20b8], 0
mov dword [ebp - 0x20b4], 0
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x2090], 0xffffffff
mov dword [ebp - 0x209c], 0
jmp 0x405aec
mov dword [ebp - 0x2040], 3
mov dword [esp], str.test.winehq.org
call dbg.xstrdup
mov edx, 0x50
mov word [ebp - 0x2034], dx
mov dword [ebp - 0x203c], eax
mov dword [esp], 0x40b974
call dbg.xstrdup
mov dword [ebp - 0x2030], eax
mov dword [esp], 0x40b974
call dbg.xstrdup
mov dword [ebp - 0x2028], eax
mov dword [esp], str._submit
call dbg.xstrdup
mov dword [ebp - 0x2020], eax
jmp 0x405767
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x57
je 0x4060fe
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20a0]
mov dword [esp + 4], str.Cant_open_file__s:__u
mov dword [esp + 8], eax
mov dword [esp], 7
call dbg.report
mov byte [ebp - 0x2098], 0
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x20a8], 0
mov dword [ebp - 0x20b8], 0
mov dword [ebp - 0x20b4], 0
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x209c], 1
jmp 0x405aec
mov eax, dword [ebp - 0x2090]
mov dword [esp + 4], str.Cant_parse_submit_URL__s
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
jmp 0x405bf8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_open_request__error__u
mov edi, 1
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
mov byte [ebp - 0x2098], 1
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x209c], 1
jmp 0x405aec
mov edi, dword [ebp - 0x2098]
mov dword [esp + 4], str.Sending__u_bytes_of_data
mov dword [esp], 0
mov dword [esp + 8], edi
call dbg.report
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], 1
call dbg.report
mov eax, edi
mov dword [ebp - 0x207c], 0
test edi, edi
je 0x405ef0
lea edx, [ebp - 0x2084]
mov dword [ebp - 0x209c], esi
mov esi, eax
lea edi, [ebp - 0x200d]
mov dword [ebp - 0x208c], edx
jmp 0x405eb2
mov eax, dword [0x40d040]
test eax, eax
jne 0x4061a2
mov eax, dword [ebp - 0x2084]
test eax, eax
je 0x405eea
mov ecx, dword [ebp - 0x207c]
lea edx, [eax + ecx]
mov dword [ebp - 0x207c], edx
cmp esi, edx
jae 0x405e58
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x2084], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20ac]
call eax
sub esp, 0x10
test eax, eax
je 0x406150
mov eax, dword [ebp - 0x2084]
cmp dword [ebp - 0x2080], eax
jne 0x406150
mov dword [esp + 8], str.Network_transfer:_In_progress
mov dword [esp + 4], eax
mov dword [esp], 3
call dbg.report
cmp dword [ebp - 0x207c], esi
jae 0x405eea
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x208c]
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x2090]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x405e20
mov esi, dword [ebp - 0x209c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x72
mov dword [esp + 4], str._r_n____8___cut_here__8____r_nContent_Disposition:_form_data__name_submit__r_n_r_nUpload_File_r_n____8___cut_here__8______r_n
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20ac]
call eax
sub esp, 0x10
test eax, eax
je 0x40617c
cmp dword [ebp - 0x2080], 0x72
jne 0x40617c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20b0]
call eax
sub esp, 0x10
test eax, eax
je 0x4061ad
mov dword [esp + 8], str.Network_transfer:_Done
lea edi, [ebp - 0x200d]
mov ebx, 0x2000
mov dword [esp + 4], 0
mov dword [esp], 3
call dbg.report
lea edx, [ebp - 0x2084]
mov dword [ebp - 0x208c], esi
xor eax, eax
mov dword [ebp - 0x207c], 0
mov esi, edx
jmp 0x405fcf
mov eax, dword [ebp - 0x207c]
mov edx, dword [ebp - 0x2084]
add eax, edx
mov dword [ebp - 0x207c], eax
cmp eax, 0x2000
je 0x406278
test edx, edx
je 0x4061d3
mov edx, ebx
mov dword [esp + 0xc], esi
sub edx, eax
add eax, edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x20bc]
call eax
sub esp, 0x10
test eax, eax
jne 0x405fa8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov esi, dword [ebp - 0x208c]
mov dword [esp], 7
mov dword [esp + 4], str.Error_receiving_reply:__u
mov dword [esp + 8], eax
call dbg.report
jmp 0x405a64
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_send_request__error__u
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
jmp 0x405a64
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_open_connection__error__u
xor edi, edi
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
mov byte [ebp - 0x2098], 0
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x20a8], 0
mov dword [ebp - 0x20b8], 0
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x209c], 1
jmp 0x405aec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_connect__error__u
xor edi, edi
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
mov byte [ebp - 0x2098], 1
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x20a8], 0
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x209c], 1
jmp 0x405aec
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp - 0x20a0]
mov dword [esp], eax
call ebx
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x405cc8
mov dword [ebp - 0x2090], eax
jmp 0x4057ba
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov esi, dword [ebp - 0x209c]
mov dword [esp], 7
mov dword [esp + 4], str.Error_sending_body:__u
mov dword [esp + 8], eax
call dbg.report
jmp 0x405a64
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_write_final_body_data__error__u
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
jmp 0x405a64
mov esi, dword [ebp - 0x209c]
jmp 0x405a64
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Unable_to_end_request__error__u
mov dword [esp], 7
mov dword [esp + 8], eax
call dbg.report
jmp 0x405a64
mov eax, dword [ebp - 0x2094]
mov esi, dword [ebp - 0x208c]
mov ebx, dword [sym.imp.msvcrt.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2098]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20a0]
mov dword [esp + 4], str.Received__s___d_bytes_._n
mov dword [esp + 8], eax
lea eax, [ebp - 0x2078]
mov dword [esp], eax
call dbg.strmake
mov ecx, dword [ebp - 0x207c]
mov edx, dword [ebp - 0x2078]
mov dword [ebp - 0x2094], eax
cmp ecx, edx
jb 0x406297
mov eax, ecx
mov dword [esp + 8], edx
sub eax, edx
mov dword [ebp - 0x208c], ecx
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2094]
mov dword [esp], eax
call sym._memcmp
mov ecx, dword [ebp - 0x208c]
test eax, eax
jne 0x406297
mov byte [ebp - 0x2098], 1
mov edi, 1
mov byte [ebp - 0x208c], 1
mov dword [ebp - 0x209c], 1
jmp 0x405aec
mov esi, dword [ebp - 0x208c]
mov dword [esp + 4], str.Buffer_overflow
mov dword [esp], 7
call dbg.report
jmp 0x405a64
mov byte [ebp + ecx - 0x200d], 0
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x20a0]
mov edi, 1
mov dword [esp + 4], str.Cant_submit_logfile__s._Server_response:__s
mov dword [esp + 8], eax
mov dword [esp], 8
call dbg.report
mov byte [ebp - 0x2098], 1
mov byte [ebp - 0x208c], 1
mov dword [ebp - 0x209c], 1
jmp 0x405aec