Function at 0x41e660
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546701
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x5ec938]
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 eax, dword [ebp + 8]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44c]
push eax
mov esi, ecx
call fcn.0041bec0
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
jne 0x41e6db
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
jg 0x41e6d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41e943
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x41e836
push 0x206
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x420], cx
call fcn.0052c850
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
mov edx, dword [ebp - 0x44c]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052cd4a
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052ceda
lea eax, [ebp + eax*2 - 0x21a]
add esp, 0x2c
cmp word [eax], 0x5c
jne 0x41e75e
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push 0x104
push ecx
call fcn.0052cd4a
add esp, 0xc
call fcn.00436219
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41e793
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x450], eax
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [esi + 0x148]
mov byte [ebp - 4], 1
call fcn.0040b760
push eax
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 2
call fcn.00402930
mov eax, dword [ebp - 0x454]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e7f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x450]
push edi
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x44c]
push str._s_s
push edx
call fcn.00403bf0
lea eax, [edi - 0x10]
or edi, 0xffffffff
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e839
or edi, 0xffffffff
mov edx, dword [ebp - 0x44c]
xor eax, eax
lea ecx, [ebp - 0x448]
push ecx
push edx
mov ecx, esi
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
call fcn.00417440
test eax, eax
jne 0x41e88d
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jmp 0x41e6c8
xor eax, eax
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [esi + 0x148]
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
call fcn.0040e130
test eax, eax
jne 0x41e8de
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jmp 0x41e6c8
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x434]
cmp eax, ecx
jae 0x41e8f0
mov ecx, eax
xor eax, eax
mov esi, 2
cmp ecx, ebx
jbe 0x41e91f
jmp 0x41e900
mov edx, dword [ebp + eax*4 - 0x430]
cmp edx, dword [ebp + eax*4 - 0x444]
jne 0x41e917
inc eax
cmp eax, ecx
jb 0x41e900
jmp 0x41e91f
sbb esi, esi
and esi, 0xfffffffe
add esi, 3
mov eax, dword [ebp - 0x44c]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x41e941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0052c2ec
mov esp, ebp
pop ebp
ret 4