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

Disassembly:
push 0xffffffffffffffff
push 0x49fc61
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4eed38]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
push esi
push edi
mov eax, dword [0x4eed38]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.0045b40e
mov ecx, dword [eax + 4]
call fcn.00458dad
lea ecx, [esp + 0x1c]
mov dword [esp + 0x450], 0
call fcn.0045bc62
mov byte [esp + 0x450], 1
call fcn.00459da6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418f9f
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.00482280
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x4a]
push ecx
mov word [esp + 0x4c], ax
call fcn.00482280
add esp, 0x18
lea edx, [esp + 0x23c]
push edx
mov ecx, 0x4f0110
call fcn.0040c130
xor eax, eax
jmp 0x419010
movzx ecx, word [esp + eax + 0x23c]
mov word [esp + eax + 0x34], cx
add eax, 2
test cx, cx
jne 0x419010
lea eax, [esp + 0x34]
push 0x5c
push eax
call fcn.00482892
xor ecx, ecx
lea edi, [esp + 0x3c]
add esp, 8
mov word [eax], cx
add edi, 0xfffffffe
cmp dword [ebp + 0x1aec], 1
jne 0x419063
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419050
mov esi, str.download_result.csv
jmp 0x419074
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x419063
mov esi, str.download_result.txt
cmp dword [ebp + 0x1ae8], 0
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x419163
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.0045bcfa
test eax, eax
je 0x4190b8
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 0x4ae15c
push edx
call fcn.0048304e
add esp, 8
mov dword [ebp + 0x1e7c], eax
test eax, eax
jne 0x419163
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push str.Open_download_report_file___s__fail_
push ecx
call fcn.00401ce0
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.004015b0
add eax, 0x10
add esp, 4
mov ecx, 0x4f0110
mov dword [edi], eax
call fcn.0040cea0
mov byte [esp + 0x450], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x41913a
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.0045bc8b
lea ecx, [esp + 0x13]
mov dword [esp + 0x450], 0xffffffff
call fcn.00403520
xor eax, eax
jmp 0x4191b5
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 0x41918b
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.0045bc8b
lea ecx, [esp + 0x13]
mov dword [esp + 0x450], 0xffffffff
call fcn.00403520
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.004820da
add esp, 0x444
ret