Function at 0x4193a0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b5831
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.00471eac
mov ecx, dword [eax + 4]
call fcn.0046b2c8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x450], 0
call fcn.00475e73
mov byte [esp + 0x450], 1
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41941f
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x246]
push edx
mov byte [esp + 0x45c], 2
mov word [esp + 0x248], cx
call fcn.00494750
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.00494750
add esp, 0x18
lea edx, [esp + 0x23c]
push edx
mov ecx, 0x50b7e0
call fcn.0040aa50
xor eax, eax
jmp 0x419490
movzx ecx, word [esp + eax + 0x23c]
mov word [esp + eax + 0x34], cx
add eax, 2
test cx, cx
jne 0x419490
lea eax, [esp + 0x34]
push 0x5c
push eax
call fcn.0049543c
xor ecx, ecx
lea edi, [esp + 0x3c]
add esp, 8
mov word [eax], cx
add edi, 0xfffffffe
cmp dword [ebp + 0x2000], 1
jne 0x4194e3
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4194d0
mov esi, str.download_result.csv
jmp 0x4194f4
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4194e3
mov esi, str.download_result.txt
cmp dword [ebp + 0x1ffc], 0
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4195e3
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.00475f0b
test eax, eax
je 0x419538
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x34]
push 0x4c528c
push edx
call fcn.00496ca9
add esp, 8
mov dword [ebp + 0x23a8], eax
test eax, eax
jne 0x4195e3
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push str.Open_download_report_file___s__fail_
push ecx
call fcn.00401cb0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 1
push 0
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push esi
call fcn.00401560
add eax, 0x10
add esp, 4
mov ecx, 0x50b7e0
mov dword [edi], eax
call fcn.0040b710
mov byte [esp + 0x450], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4195ba
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], 0
call fcn.00475e9c
lea ecx, [esp + 0x13]
mov dword [esp + 0x450], 0xffffffff
call fcn.00418aa0
xor eax, eax
jmp 0x419635
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x450], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41960b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], 0
call fcn.00475e9c
lea ecx, [esp + 0x13]
mov dword [esp + 0x450], 0xffffffff
call fcn.00418aa0
mov eax, 1
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.004945a7
add esp, 0x444
ret