Function at 0x408050
Capabilities:
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54043b
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x5a38c0]
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 edi, ecx
mov dword [ebp - 0x17c], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dword [ebp - 4], 0
test eax, eax
jne 0x408121
mov ecx, dword [edi + 0x878]
push eax
push eax
push 0x1042
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40810f
lea ebx, [edi + 0x858]
push esi
mov ecx, ebx
call fcn.0043583d
cmp eax, 1
jne 0x408121
push 0
push esi
lea edx, [ebp - 0x174]
push edx
mov ecx, ebx
call fcn.00436337
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00403f10
mov eax, dword [ebp - 0x174]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408121
lea eax, [edi + 0x720]
push eax
lea ecx, [edi + 0x7e4]
call fcn.0042f2ba
mov ecx, dword [ebp + 8]
push 0x5515c8
push ecx
call fcn.00527e75
add esp, 8
test eax, eax
sete al
test al, al
je 0x4081a8
mov eax, dword [edi + 0x720]
push ecx
sub eax, 0x10
mov dword [ebp - 0x180], esp
mov ebx, esp
push eax
call fcn.00402f50
add esp, 4
lea edx, [ebp - 0x174]
add eax, 0x10
push edx
mov ecx, edi
mov dword [ebx], eax
call fcn.00405db0
push eax
lea ecx, [edi + 0x720]
mov byte [ebp - 4], 2
call fcn.00403f10
mov eax, dword [ebp - 0x174]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408234
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408234
mov ecx, dword [ebp + 8]
push 0x55182c
push ecx
call fcn.00527e75
add esp, 8
test eax, eax
setne al
test al, al
je 0x408234
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [edi + 0x720]
call fcn.004036e0
push 1
lea edx, [ebp - 0x174]
push edx
lea ecx, [edi + 0x720]
call fcn.00403b20
mov eax, dword [eax]
push 0x551828
push eax
call fcn.00527e75
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x174]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x408234
push 0x551828
lea ecx, [edi + 0x720]
call fcn.004052d0
mov eax, dword [edi + 0x720]
cmp dword [eax - 0xc], 0
jne 0x408266
mov ecx, edi
call fcn.004056e0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40872c
mov ecx, dword [edi + 0x804]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x14a
push ecx
call esi
mov edx, dword [edi + 0x804]
push 0
push 0
push 0x14e
push edx
call esi
mov eax, dword [edi + 0x878]
push 0
push 0
push 0x1009
push eax
call esi
mov ecx, dword [edi + 0x878]
push 0
push 0
push 0x101c
push ecx
call esi
test eax, eax
jne 0x4082a1
push 0xffffffffffffffff
push 0xc8
push eax
push 0x551800
lea esi, [edi + 0x858]
push eax
mov ecx, esi
call fcn.00435cae
push 0xffffffffffffffff
push 0x64
push 0
push 0x551934
push 1
mov ecx, esi
call fcn.00435cae
push 0xffffffffffffffff
push 0x64
push 0
push 0x5517f8
push 2
mov ecx, esi
call fcn.00435cae
push 0xffffffffffffffff
push 0x73
push 0
push 0x551928
push 3
mov ecx, esi
call fcn.00435cae
push 0x10
push 0
call fcn.00401930
add esp, 8
push 0
push eax
push 0
push 0
push 0x5515c8
push 0
push 3
mov ecx, esi
call fcn.00435d03
push 1
push 0
push 0
push 0
push 0
push 4
push 0
push eax
mov ecx, esi
call fcn.00435d51
mov dword [ebp - 0x184], 1
mov dword [ebp - 0x178], 0
lea ecx, [ebp - 0x1a0]
call fcn.004384d7
push 0x551924
lea eax, [edi + 0x720]
push eax
lea edx, [ebp - 0x1c4]
push edx
mov byte [ebp - 4], 3
call fcn.00403df0
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 4
call fcn.0043857b
mov ebx, eax
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x4086d8
lea esp, [esp]
lea ecx, [ebp - 0x1a0]
call fcn.0043828d
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x180], eax
call fcn.0043849c
test eax, eax
jne 0x4086cb
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x1a0]
call eax
neg eax
sbb eax, eax
inc eax
cmp eax, dword [ebp - 0x178]
sete al
test al, al
je 0x4086cb
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.00438772
mov edi, eax
lea edx, [ebp - 0x1bc]
push edx
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 5
call fcn.0043880c
mov ebx, eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 6
call fcn.0043880c
mov edi, dword [edi]
mov ecx, dword [eax]
mov ebx, dword [ebx]
push edi
mov byte [ebp - 4], 7
mov dword [ebp - 0x174], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
push ebx
call fcn.00401930
mov edx, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x184]
add esp, 8
push 0
push eax
push 0
push 0
push edx
push ebx
push 3
mov ecx, esi
call fcn.00435d03
mov edi, eax
mov eax, dword [ebp - 0x1a8]
inc ebx
add eax, 0xfffffff0
mov dword [ebp - 0x184], ebx
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1bc]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1a4]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x1a0]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x1a0]
call eax
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, esi
call fcn.00435d51
lea ecx, [ebp - 0x1ac]
push ecx
lea ecx, [ebp - 0x1a0]
call fcn.0043880c
mov eax, dword [eax]
push 0x410
push 0x160
lea edx, [ebp - 0x170]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x1ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x60]
push ecx
push 2
push edi
mov ecx, esi
call fcn.00435810
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x408756
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x174], eax
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 8
call fcn.004382ca
and eax, 0x3ff
xor edx, edx
or eax, edx
je 0x4085e7
lea ebx, [edx + 1]
jmp 0x4085e9
xor ebx, ebx
lea ecx, [ebp - 0x1a0]
call fcn.004382ca
shrd eax, edx, 0xa
mov ecx, eax
shr edx, 0xa
mov dword [ebp - 0x1c0], edx
mov eax, ebx
cdq
add ecx, eax
mov eax, dword [ebp - 0x1c0]
adc eax, edx
push eax
push ecx
lea edx, [ebp - 0x174]
push str._10d_KB
push edx
call fcn.00401560
mov ebx, dword [ebp - 0x174]
add esp, 0x10
push ebx
push 1
push edi
mov ecx, esi
call fcn.00435810
xor eax, eax
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.004383f4
push str._Y__m__d__H:_M
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x1b4]
call fcn.00407fb0
mov eax, dword [eax]
push eax
push 3
push edi
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00435810
mov eax, dword [ebp - 0x1b8]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4086a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x17c]
cmp dword [ebp - 0x180], 0
jne 0x4083d0
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0
call fcn.00438506
mov eax, dword [ebp - 0x178]
inc eax
mov dword [ebp - 0x178], eax
cmp eax, 2
jl 0x40835b
mov ecx, dword [edi + 0x720]
push ecx
push 0x5517b4
push edi
call fcn.00401b70
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408738
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00527098
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401050
int3