Function at 0x476357
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49a723
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4d4028]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov al, byte [ebx + 0x2c]
test al, al
je 0x4763a0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x476738
push dword [ebx + 0x28]
push 1
call eax
jmp 0x476738
mov al, byte [ebp + 0x10]
mov byte [ebx + 0x2c], 1
mov byte [ebx + 0x2d], al
cmp dword [ebx + 0x48], 0
jne 0x4763ba
push 0x80004003
call fcn.004918d0
mov esi, dword [ebx + 0x48]
lea edi, [esp + 0x14]
call fcn.0042a060
xor esi, esi
mov dword [esp + 0x58], esi
mov eax, dword [ebx + 0x1c]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x4763f0
call fcn.0042a230
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x4763f0
mov eax, dword [ebx + 0x1c]
call fcn.0042a210
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00473de9
test al, al
jne 0x476455
mov eax, dword [ebx + 0x24]
cmp eax, esi
je 0x476411
push dword [ebx + 0x28]
push 2
call eax
mov eax, dword [ebx + 0x1c]
cmp eax, esi
je 0x476421
call fcn.0042a210
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x48], esi
jne 0x476430
push 0x80004003
call fcn.004918d0
mov esi, dword [ebx + 0x48]
lea edi, [esp + 0x28]
call fcn.0042a060
mov eax, dword [eax]
lea edi, [esp + 0x14]
call fcn.004432a0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x476455
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x476467
push 0x80004003
call fcn.004918d0
lea edi, [esp + 0x24]
call fcn.00429e70
push ecx
mov byte [esp + 0x5c], 1
mov edi, dword [0x4d4860]
mov eax, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00429dd0
mov byte [esp + 0x5c], 2
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x47649f
push 0x80004003
call fcn.004918d0
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x60], 1
call fcn.00429eb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.004431b0
mov byte [esp + 0x58], 5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4764cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x4764e1
push 0x80004003
call fcn.004918d0
lea edi, [esp + 0x3c]
call fcn.00429f70
mov ecx, eax
mov byte [esp + 0x58], 6
call fcn.00429fc0
mov edi, eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x5c], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp edi, 2
je 0x4766ff
cmp edi, 4
je 0x4766ff
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00490270
lea ecx, [esp + 0x10]
call dword [0x4a2ef4]
mov esi, dword [ebp + 8]
and dword [esp + 0x18], 0
mov byte [esp + 0x58], 7
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x30], eax
jle 0x476680
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.00417910
push eax
lea ecx, [esp + 0x14]
call dword [0x4a2ea0]
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
lea edi, [esp + 0x1c]
call dword [0x4a2ec0]
mov ecx, edi
call fcn.00474067
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x47659a
mov eax, dword [ebp + 0x14]
sub eax, 0
je 0x47666e
dec eax
je 0x47660b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
test al, 1
je 0x4765ec
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [0x4a2ec0]
call fcn.00474346
test al, al
je 0x47666e
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call dword [0x4a2ec0]
mov ecx, ebx
call fcn.00475529
jmp 0x476657
mov eax, dword [esp + 0x10]
call fcn.00417d00
test eax, eax
je 0x47666e
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00490240
jmp 0x47666e
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
test al, 1
je 0x47666e
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [0x4a2ec0]
call fcn.00474346
test al, al
je 0x47666e
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
lea edi, [esp + 0x1c]
call dword [0x4a2ec0]
push ebx
mov ecx, edi
call fcn.00475ccf
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [0x4a2ec0]
call fcn.00476243
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jl 0x47654b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [ebx + 0x18], eax
lea edi, [ebx + 0x14]
mov eax, esi
call fcn.004432a0
lea eax, [esp + 0x38]
push eax
push 4
push ebx
push 0x47674c
push 0
push 0
mov byte [ebx + 0x2e], 1
call dword [0x4a3084]
add esp, 0x18
test eax, eax
je 0x4766be
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x10]
call dword [0x4a2ee8]
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4766db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4766ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x476738
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x476738
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x476712
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x476725
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x476738
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10