Function at 0x41f770
Capabilities:
Check http status code
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d448c
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x56b06c]
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 dword [ebp - 0x124], edx
mov edi, ecx
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0
call fcn.0041e110
mov ebx, dword [eax]
mov dword [ebp - 0x120], ebx
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov esi, dword [ebp - 0x114]
test esi, esi
je 0x41f7f0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41f7f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41f7f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x120], 0
je 0x41f860
lea ecx, [ebp - 0x118]
call fcn.0041e110
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov edx, edi
mov esi, dword [eax]
cmovae ecx, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x41f823
mov edx, dword [edi]
mov eax, dword [esi]
push ecx
push edx
push str.UploadLogs:_filePath___s___proxy___s_.
push esi
call dword [eax + 4]
add esp, 0x10
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x114]
test esi, esi
je 0x41f860
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41f860
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41f860
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x120], 0xffffffff
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41f878
mov eax, dword [edi]
push 0x80
push 3
push 1
push SysReAllocStringLen
push eax
lea ecx, [ebp - 0x120]
call fcn.0041ddc0
mov esi, dword [ebp - 0x120]
test eax, eax
jne 0x41f949
lea ecx, [ebp - 0x118]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x124], edi
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x114]
test edi, edi
je 0x41f8e0
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41f8e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41f8e0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp - 0x124], 0
mov byte [ebp - 4], 4
je 0x41f942
lea ecx, [ebp - 0x118]
call fcn.0041e110
mov byte [ebp - 4], 6
mov edi, dword [eax]
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile_failed_with_error___d_.
push edi
call dword [ebx + 4]
add esp, 0xc
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x114]
test ebx, ebx
je 0x41f942
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41f942
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x41f942
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor bl, bl
jmp 0x4201ba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x11c], eax
call fcn.0041e110
mov ecx, dword [eax]
mov dword [ebp - 0x114], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x128], ecx
test ecx, ecx
je 0x41f9a0
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x41f9a0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x128]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x41f9a0
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x114], 0
je 0x41fa0b
lea ecx, [ebp - 0x110]
call fcn.0041e110
push dword [ebp - 0x11c]
mov byte [ebp - 4], 9
mov eax, dword [eax]
push str.File_size_is___d_.
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x114], ecx
test ecx, ecx
je 0x41fa07
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x41fa07
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x114]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x41fa07
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x134]
call fcn.00420880
mov eax, dword [ebp - 0x11c]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x41fb01
push 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push ecx
push eax
push dword [ebp - 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fb01
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0xc
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41fa98
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41fa98
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41fa98
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x114], 0
je 0x41fafa
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov byte [ebp - 4], 0xd
mov edi, dword [eax]
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed_with_error_code___d_.
push edi
call dword [ebx + 4]
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ebx, dword [ebp - 0x10c]
test ebx, ebx
je 0x41fafa
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41fafa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], edi
dec edi
jne 0x41fafa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor bl, bl
jmp 0x420180
push 0x1c
xor eax, eax
mov dword [ebp - 0x60], 0
push str.https:__log.disk.yandex.net_
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00412c70
push 0
push ecx
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x108]
call fcn.0042c600
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x40]
push 0xc
xor eax, eax
mov dword [ebp - 0x30], 0
push str.X_Filename:
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00412c70
mov byte [ebp - 4], 0x12
cmp dword [edi + 0x14], 8
jb 0x41fb83
mov edi, dword [edi]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea edi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x41fb90
sub edx, edi
lea ecx, [ebp - 0x40]
sar edx, 1
push edx
push eax
call fcn.00413720
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41fbe9
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41fbe9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41fbe9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x114], 0
je 0x41fc52
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
mov edx, dword [eax]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
mov eax, dword [edx]
push ecx
push str.Header_is___s_.
push edx
call dword [eax + 4]
add esp, 0xc
mov byte [ebp - 4], 0x15
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41fc4e
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41fc4e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41fc4e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x108]
push 0
push 0
push 0
push 0
push dword [ebp - 0x11c]
push dword [ebp - 0x134]
push eax
push 0x53f63c
push str.store_log
call fcn.0042c880
test al, al
jne 0x41fd7b
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0x16
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41fcd1
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41fcd1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41fcd1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x114], 0
je 0x41ffa6
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
lea eax, [ebp - 0x90]
push eax
call fcn.004119e0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.SendRequest_failed_with_error___s_.
push edi
call dword [eax + 4]
mov byte [ebp - 4], 0x17
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41fd5e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41fd54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42021a
push edx
push ecx
call fcn.004835cc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x19
jmp 0x41ff7e
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x128], eax
cmp eax, 0xc8
je 0x41fe82
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0x1a
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41fdd2
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41fdd2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41fdd2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x114], 0
je 0x41ffa6
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
lea eax, [ebp - 0x90]
push eax
call fcn.004119e0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x128]
push str.StatusCode___d__check_failed_with_error___s_.
push edi
call dword [eax + 4]
mov byte [ebp - 4], 0x1b
add esp, 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41fe65
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41fe5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42021f
push edx
push ecx
call fcn.004835cc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x1d
jmp 0x41ff7e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x108]
call fcn.0042c910
test al, al
jne 0x41ffad
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0x1e
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41fed9
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41fed9
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41fed9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x114], 0
je 0x41ffa6
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x28]
mov edi, dword [eax]
lea eax, [ebp - 0x90]
push eax
call fcn.004119e0
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x28]
push ecx
push str.ReadResponce_failed_with_error___s_.
push edi
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
add esp, 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41ff66
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ff5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420224
push edx
push ecx
call fcn.004835cc
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x21
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x41ffa6
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41ffa6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x41ffa6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor bl, bl
jmp 0x4200a7
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.004213f0
mov ecx, dword [ebp - 0x124]
push eax
call fcn.00421020
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41fffe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41fff4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420229
push edx
push ecx
call fcn.004835cc
add esp, 8
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edi, dword [eax]
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0x22
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x42003e
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x42003e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x42003e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x114], 0
je 0x4200a5
lea ecx, [ebp - 0x110]
call fcn.0041e110
mov edx, dword [ebp - 0x124]
mov byte [ebp - 4], 0x23
mov ecx, dword [eax]
cmp dword [edx + 0x14], 8
jb 0x42006a
mov edx, dword [edx]
mov eax, dword [ecx]
push edx
push str.ResultUrl_is___s_.
push ecx
call dword [eax + 4]
add esp, 0xc
mov byte [ebp - 4], 0x24
mov edi, dword [ebp - 0x10c]
test edi, edi
je 0x4200a5
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4200a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4200a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4200e1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4200d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42022e
push edx
push ecx
call fcn.004835cc
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 0x10
jb 0x420129
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42011f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420233
push edx
push ecx
call fcn.004835cc
add esp, 8
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.0042c6c0
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x420180
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420176
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420238
push edx
push ecx
call fcn.004835cc
add esp, 8
mov edx, dword [ebp - 0x134]
test edx, edx
je 0x4201ba
mov ecx, dword [ebp - 0x12c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4201b0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42023d
push ecx
push edx
call fcn.004835cc
add esp, 8
cmp esi, 0xffffffff
je 0x4201c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4201fc
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4201f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420242
push edx
push ecx
call fcn.004835cc
add esp, 8
mov al, bl
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.0048358b
mov esp, ebp
pop ebp
ret
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
call fcn.004b1db8
int3