Function at 0x424040
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524d6e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x58e5a4]
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 - 0x20], edi
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0
jne 0x4242d5
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.0040d800
add esp, 4
mov ecx, esi
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4240b0
mov ebx, dword [ebp - 0x1c]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00408af0
mov byte [ebp - 4], 1
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov edx, esi
mov dword [ebp - 0x40], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x14], 1
call fcn.0042e1b0
mov edx, dword [edi]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040d940
add esp, 8
lea esi, [ebx + 0x48]
mov ecx, esi
push eax
call fcn.0040bfb0
lea ecx, [ebp - 0x5c]
call fcn.00409020
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00409020
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x424139
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00417530
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x24]
or edi, 0xffffffff
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x424171
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
jne 0x4241a4
or dword [ebx + 0xd0], 1
lea eax, [ebp - 0x5c]
push esi
push 0x564c90
push eax
call fcn.004249b0
add esp, 0xc
mov ecx, esi
push eax
call fcn.0040bfb0
lea ecx, [ebp - 0x5c]
call fcn.00409020
jmp 0x424238
mov dword [ebp - 0x14], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4241b5
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c130
push 0x22
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00424640
mov eax, dword [ebp - 0x14]
sub esp, 8
mov ecx, dword [ebp - 0x18]
xor dl, dl
mov dword [ebp - 0x24], eax
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
test ecx, ecx
je 0x4241f1
lock inc dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax], ebx
call fcn.0042e240
lea ecx, [ebx + 0x60]
add esp, 8
cmp ecx, esi
je 0x42421a
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x424213
mov esi, dword [esi]
push eax
push esi
call fcn.00408af0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424238
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x28]
lea ecx, [ebx + 0xb4]
mov edx, esi
lea eax, [edx + 2]
mov dword [ebp - 0x28], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x424250
sub edx, dword [ebp - 0x28]
sar edx, 1
push edx
push esi
call fcn.00408af0
mov esi, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [esi + 4]
cmp byte [eax], cl
sete cl
lea ecx, [ecx*2 + 0x2000]
or dword [ebx + 0xd0], ecx
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x42429c
mov edx, dword [ebp - 0x18]
xor esi, esi
mov dword [eax], ebx
mov dword [eax + 4], edx
add dword [ecx + 4], 8
jmp 0x4242a9
lea edx, [ebp - 0x1c]
push edx
push eax
call fcn.0040da80
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4242d2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4242d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4242d2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
mov ebx, dword [edi + 0xc]
cmp dword [ebx], 0
je 0x42430f
mov esi, dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [esi]
sbb edx, dword [esi + 4]
test edx, edx
jb 0x42430f
ja 0x4242f5
cmp eax, dword [ebx]
jb 0x42430f
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x42432d
mov eax, dword [ecx]
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esi], eax
mov dword [esi + 4], edx
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.004d2a60
mov esp, ebp
pop ebp
ret 0xc
call fcn.004b8ee1
int3