Function at 0x4177a0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x472d06
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4878d4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4878d4]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0
push 0
mov ebx, edx
push 0xffffffffffffffff
mov edi, ecx
push ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
call esi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x36]
push edx
mov dword [esp + 0x24], eax
mov word [esp + 0x38], cx
call fcn.0045cac0
xor ebp, ebp
add esp, 0xc
cmp dword [esp + 0x18], ebp
jle 0x417a0b
jmp 0x417836
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0
push 0
push ebp
push ebx
call esi
inc eax
push eax
lea eax, [esp + 0x30]
push eax
push ebp
push ebx
call esi
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x417a00
cmp dword [edi + 0x538], 0
jne 0x41788c
mov edx, dword [edi + 0x520]
push 0
push edx
mov edx, 0x47b668
mov ecx, str._g0W
call fcn.00423900
mov dword [edi + 0x538], eax
test eax, eax
je 0x417a0b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.004040c0
mov dword [esp + 0x244], 0
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0045b55b
add esp, 8
test eax, eax
jne 0x4178c0
or ecx, 0xffffffff
jmp 0x4178c8
sub eax, dword [esp + 0x14]
sar eax, 1
mov ecx, eax
mov eax, esi
sub eax, ecx
lea ecx, [esp + 0x14]
push ecx
dec eax
lea ecx, [esp + 0x28]
call fcn.0040a440
mov byte [esp + 0x244], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41793d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x417928
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x417928
call fcn.00404c80
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41791f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x417935
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404be0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov byte [esp + 0x244], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417965
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x538]
mov edx, dword [edi + 0x520]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x34]
call fcn.00423900
mov esi, eax
test esi, esi
je 0x4179d5
push 0x47b540
push 0x47b54c
lea eax, [esp + 0x1c]
push eax
call fcn.00404320
push 0x47b550
push 0x47b55c
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404320
mov eax, dword [edi + 0x598]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
push str._g0W
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test ebp, ebp
jne 0x4179d5
push esi
push edi
call fcn.00411f60
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, dword [esp + 0x18]
jl 0x417830
push ebx
call dword [sym.imp.SHELL32.dll_DragFinish]
mov ecx, dword [esp + 0x28]
mov dword [ecx], 1
mov eax, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004599ea
add esp, 0x234
ret 4