Function at 0x403d30
Capabilities:
Check http status code
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Send data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57575b
mov eax, dword fs:[0]
push eax
mov eax, 0x3074
call fcn.0054c830
mov eax, dword [0x5daf20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x301c], esi
push str._______________________________ceb3bc13bbea0941a04b2f8226f5d7ea
lea ecx, [ebp - 0x3028]
call fcn.004050a0
mov dword [ebp - 4], 0
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403d9d
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x3034], edi
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x48]
or ebx, 0xffffffff
mov dword [ebp - 0x3014], ecx
test eax, eax
je 0x4040e5
test ecx, ecx
je 0x4040d9
mov esi, eax
test eax, eax
je 0x404295
mov esi, dword [esi + 8]
mov eax, dword [eax]
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0x3038], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x403e0b
cmp ecx, dword [esi - 0x10]
jne 0x403e0b
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x403e44
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
je 0x404290
mov ecx, dword [esi - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00547a19
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x302c], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3014]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx]
sub edi, 0x10
mov dword [ebp - 0x3014], ecx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x403e86
cmp ecx, dword [edi]
jne 0x403e86
mov eax, 1
lock xadd dword [edx], eax
jmp 0x403ece
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x3024], edx
test edx, edx
je 0x404290
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.00547a19
mov edi, dword [ebp - 0x3024]
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x3024], edi
lea eax, [ebp - 0x3028]
push eax
lea eax, [ebp - 0x3040]
push 0x5aede8
push eax
mov byte [ebp - 4], 3
call fcn.00404a00
push 0x5aed84
push eax
lea eax, [ebp - 0x303c]
push eax
mov byte [ebp - 4], 4
call fcn.00404b80
push str.Content_Disposition:_form_data__name_
push eax
lea eax, [ebp - 0x3030]
push eax
mov byte [ebp - 4], 5
call fcn.00404b80
lea ecx, [ebp - 0x302c]
push ecx
push eax
lea eax, [ebp - 0x3050]
push eax
mov byte [ebp - 4], 6
call fcn.004048a0
push str.__r_n_r_n
push eax
lea eax, [ebp - 0x3044]
push eax
mov byte [ebp - 4], 7
call fcn.00404b80
lea ecx, [ebp - 0x3024]
push ecx
push eax
lea eax, [ebp - 0x304c]
push eax
mov byte [ebp - 4], 8
call fcn.004048a0
add esp, 0x48
push 0x5aed84
push eax
lea eax, [ebp - 0x3054]
push eax
mov byte [ebp - 4], 9
call fcn.00404b80
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
lea ecx, [ebp - 0x3034]
push dword [eax - 0xc]
push eax
call fcn.00404c80
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x3054]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403fb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x304c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403fdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x3044]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403fff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x3050]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404022
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x3030]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404045
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x303c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404068
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3040]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40408b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4040a8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4040c5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3038]
mov ecx, dword [ebp - 0x3014]
test eax, eax
jne 0x403dc8
mov esi, dword [ebp - 0x301c]
mov edi, dword [ebp - 0x3034]
push 0x5aede8
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x3040]
push eax
call fcn.00404b80
lea ecx, [ebp - 0x3028]
push ecx
push eax
lea eax, [ebp - 0x3038]
push eax
mov byte [ebp - 4], 0xb
call fcn.004048a0
push str._r_nContent_Disposition:_form_data__name_LocalFile___filename_minidump.zip__r_nContent_Type:_application_x_zip_compressed_r_n_r_n
push eax
lea eax, [ebp - 0x3018]
push eax
mov byte [ebp - 4], 0xc
call fcn.00404b80
add esp, 0x24
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x3038]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404151
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x3040]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404174
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x3028]
push eax
lea eax, [ebp - 0x303c]
push str._r_n__
push eax
call fcn.00404a00
push 0x5aede8
push eax
lea eax, [ebp - 0x3020]
push eax
mov byte [ebp - 4], 0x10
call fcn.00404b80
add esp, 0x18
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x303c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4041c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x3018]
mov esi, eax
mov edx, dword [ecx - 0xc]
mov ecx, dword [ebp - 0x3020]
mov dword [ebp - 0x3024], esi
mov eax, dword [ecx - 0xc]
add eax, edx
add eax, esi
push eax
mov dword [ebp - 0x3014], eax
call fcn.00425577
add esp, 4
mov dword [ebp - 0x302c], eax
test eax, eax
jne 0x40429a
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x3020]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404231
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3018]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404254
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404271
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3028]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jmp 0x404832
call fcn.00401740
call fcn.004283c4
mov esi, dword [ebp - 0x3018]
cmp dword [esi - 4], 1
jle 0x4042ba
push dword [esi - 0xc]
lea ecx, [ebp - 0x3018]
call fcn.00401470
mov esi, dword [ebp - 0x3018]
test esi, esi
jne 0x4042c2
xor eax, eax
jmp 0x404302
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4042c7
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jle 0x4042e3
xor eax, eax
jmp 0x404302
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.0054c500
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.004049c0
mov esi, dword [ebp - 0x3018]
or ebx, 0xffffffff
push dword [esi - 0xc]
mov esi, dword [ebp - 0x302c]
push eax
push dword [ebp - 0x3014]
push esi
call fcn.00547a19
mov eax, dword [ebp - 0x3018]
add esp, 0x10
mov eax, dword [eax - 0xc]
push 0
lea ecx, [ebp - 0x3058]
push ecx
push dword [ebp - 0x3024]
add eax, esi
push eax
mov dword [ebp - 0x3030], eax
mov eax, dword [ebp - 0x301c]
push dword [eax + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4043e2
push esi
call fcn.00425580
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x3020]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40437f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3018]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4043a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404271
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3028]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jmp 0x404832
mov eax, dword [ebp - 0x3024]
mov esi, dword [ebp - 0x3020]
add dword [ebp - 0x3030], eax
cmp dword [esi - 4], 1
jle 0x40440e
push dword [esi - 0xc]
lea ecx, [ebp - 0x3020]
call fcn.00401470
mov esi, dword [ebp - 0x3020]
test esi, esi
jne 0x404416
xor eax, eax
jmp 0x404459
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x404420
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404420
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x40443e
xor eax, eax
jmp 0x404459
add ebx, ebx
mov eax, ebx
call fcn.0054c500
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.004049c0
mov esi, dword [ebp - 0x3020]
mov ecx, dword [esi - 0xc]
push ecx
push eax
push ecx
push dword [ebp - 0x3030]
call fcn.00547a19
mov ebx, dword [ebp - 0x3014]
mov esi, dword [ebp - 0x301c]
xorps xmm0, xmm0
movq qword [ebp - 0x3080], xmm0
movq qword [ebp - 0x3068], xmm0
add esp, 0x10
movq qword [ebp - 0x3078], xmm0
movq qword [ebp - 0x3070], xmm0
movq qword [ebp - 0x3060], xmm0
mov dword [ebp - 0x3080], 0x28
mov dword [ebp - 0x3064], ebx
push 0
push 8
push 0
lea eax, [ebp - 0x3080]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x1c]
mov dword [ebp - 0x301c], eax
call fcn.00403730
test al, al
jne 0x4044b4
cmp dword [ebp - 0x301c], 0
mov ebx, dword [ebp - 0x3014]
mov eax, dword [ebp - 0x302c]
jne 0x4044fa
push eax
jmp 0x4047aa
mov dword [ebp - 0x3014], eax
call fcn.00434157
mov eax, dword [eax + 4]
mov dword [ebp - 0x303c], eax
test ebx, ebx
je 0x40458d
mov ecx, dword [ebp - 0x3014]
lea esp, [esp]
mov eax, 0x1000
cmp ebx, eax
lea edx, [ebp - 0x3024]
push edx
cmovb eax, ebx
push eax
push ecx
push dword [esi + 0x14]
mov dword [ebp - 0x3024], 0
mov dword [ebp - 0x3030], eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov ecx, dword [ebp - 0x303c]
mov dword [ebp - 0x301c], eax
cmp byte [ecx + 0x1ec], 0
jne 0x4047a4
test eax, eax
je 0x4047a4
mov eax, dword [ebp - 0x3024]
cmp eax, dword [ebp - 0x3030]
jne 0x40458d
mov ecx, dword [ebp - 0x3014]
add ecx, eax
mov dword [ebp - 0x3014], ecx
sub ebx, eax
jne 0x404520
cmp dword [ebp - 0x301c], 0
je 0x4047a4
push 0
push 0
push 0
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x4047a4
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea eax, [ebp - 0x3048]
push eax
lea ebx, [esi + 0x1c]
push ebx
push 0x20000013
push dword [esi + 0x14]
mov dword [ebp - 0x3048], 4
call edi
test eax, eax
jne 0x40461b
push dword [ebp - 0x302c]
call fcn.00425580
add esp, 4
lea ecx, [ebp - 0x3020]
call fcn.004017c0
lea ecx, [ebp - 0x3018]
call fcn.004017c0
lea ecx, [ebp - 0x3034]
call fcn.004017c0
lea ecx, [ebp - 0x3028]
call fcn.004017c0
jmp 0x40483c
cmp dword [ebx], 0xc8
jne 0x40475e
push 0
lea eax, [ebp - 0x3038]
push eax
lea eax, [ebp - 0x3010]
push eax
push 1
push dword [esi + 0x14]
mov dword [ebp - 0x3038], 0x1000
call edi
test eax, eax
je 0x40475e
lea eax, [ebp - 0x3010]
push str.text_html
push eax
call fcn.00547ebb
add esp, 8
test eax, eax
jne 0x404684
lea eax, [ebp - 0x3010]
push str.text_xml
push eax
call fcn.00547ebb
add esp, 8
test eax, eax
je 0x40475e
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x3014], 0
lea eax, [ebp - 0x3014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x404751
cmp dword [ebp - 0x3014], 0
jbe 0x404758
lea ecx, [ebp - 0x301c]
call fcn.00401850
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x3014]
cmp eax, 0x1000
jae 0x40479f
lea ecx, [ebp - 0x1010]
mov byte [ebp + eax - 0x1010], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4046f2
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40470a
xor eax, eax
jmp 0x404724
lea eax, [edi + edi]
call fcn.0054c500
mov eax, esp
push 3
push edi
lea ecx, [ebp - 0x1010]
push ecx
push eax
call fcn.00404980
push eax
lea ecx, [ebp - 0x301c]
call fcn.00405050
mov eax, dword [ebp - 0x301c]
lea ecx, [esi + 0x18]
push dword [eax - 0xc]
push eax
call fcn.00404c80
lea ecx, [ebp - 0x301c]
mov byte [ebp - 4], 0x12
call fcn.004017c0
cmp dword [ebp - 0x3014], 0
jne 0x404694
push dword [ebp - 0x302c]
call fcn.00425580
add esp, 4
lea ecx, [ebp - 0x3020]
call fcn.004017c0
lea ecx, [ebp - 0x3018]
call fcn.004017c0
lea ecx, [ebp - 0x3034]
call fcn.004017c0
lea ecx, [ebp - 0x3028]
call fcn.004017c0
mov al, 1
jmp 0x40483e
call fcn.00548288
push dword [ebp - 0x302c]
call fcn.00425580
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x3020]
add edx, 0xfffffff0
or esi, 0xffffffff
mov ecx, esi
lea eax, [edx + 0xc]
add esp, 4
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4047d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x3018]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4047fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov ecx, esi
lea eax, [edi + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404818
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x3028]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40483c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
lea esp, [ebp - 0x3090]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00547a0a
mov esp, ebp
pop ebp
ret