Function at 0x491d00
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x50]
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [eax - 8]
mov ebx, 4
push esi
push edi
test ecx, ecx
mov dword [esp + 0x18], 1
mov dword [esp + 0x34], ebx
jne 0x491d2d
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x491d82
push ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, esp
jl 0x491d54
mov dword [esi], eax
mov ecx, dword [esp + 0x6c]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x491d76
mov edx, dword [0x546560]
mov dword [esi], edx
mov eax, dword [esp + 0x6c]
test eax, eax
mov edi, eax
je 0x491d6d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
call fcn.0048e490
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x491dd5
push ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, esp
jl 0x491da9
mov dword [esi], eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x491dcb
mov ecx, dword [0x546560]
mov dword [esi], ecx
mov eax, dword [esp + 0x68]
test eax, eax
mov edi, eax
je 0x491dc2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
call fcn.0048e490
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x194], edx
mov dword [ebp + 0x190], 1
test eax, eax
mov dword [ebp + 0x198], ebx
je 0x491e6b
mov eax, dword [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.005106b0
push 0
push 1
push 0
lea edx, [esp + 0x38]
sub esp, 8
mov ecx, esp
push edx
call fcn.004217d0
mov ecx, ebp
call fcn.00498910
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x491e62
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x491e62
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.005106b0
mov eax, dword [ebp + 0x3c]
push 0x19
lea ecx, [esp + 0x38]
mov esi, dword [eax]
call fcn.00510c70
mov ecx, dword [ebp + 0x3c]
push eax
push ecx
call dword [esi + 0x38]
lea ecx, [esp + 0x34]
call fcn.0050fe40
lea ecx, [esp + 0x2c]
jmp 0x4925d9
mov edx, dword [esp + 0x5c]
mov eax, dword [edx - 8]
test eax, eax
je 0x492578
lea ecx, [esp + 0x34]
call fcn.0050fea0
mov eax, dword [0x546560]
push ecx
mov esi, esp
mov ecx, str._22_
test ecx, ecx
mov dword [esi], eax
je 0x491eca
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x491eca
push edi
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x491eca
mov edx, dword [esi]
inc edi
push edi
push str._22_
push edx
call fcn.00405400
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call fcn.00405bb0
push ecx
lea eax, [esp + 0x64]
mov ecx, esp
push eax
call fcn.00405440
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0xe4]
call fcn.004e53d0
test eax, eax
je 0x4925d5
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4925d5
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
push edx
call fcn.00510700
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [0x546564]
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x491f43
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x491f43
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
test bl, 0x10
je 0x491f51
cmp ebx, 0xffffffff
jne 0x4921b3
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
neg eax
sbb eax, eax
xor edi, edi
and eax, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov esi, dword [eax]
call fcn.00420df0
cmp esi, edi
je 0x491f8e
cmp word [esi], di
jne 0x491f8e
mov eax, dword [0x554ad4]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x491fa5
mov edx, dword [eax]
push eax
call dword [edx + 4]
jmp 0x491fa5
mov eax, dword [0x554ad4]
lea edx, [esp + 0x10]
push edx
push 0x542354
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x14]
lea ecx, [esp + 0x24]
call fcn.00424c80
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x49217f
lea eax, [esp + 0x34]
sub esp, 8
neg eax
sbb eax, eax
lea ecx, [esp + 0x40]
mov esi, esp
and eax, ecx
push eax
lea ecx, [esi + 4]
call fcn.00406280
mov ecx, ebp
mov dword [esi], 0x5409d8
call fcn.00492a00
mov edx, dword [0x546560]
mov eax, str.__2a_
test eax, eax
mov dword [esp + 0x14], edx
je 0x492030
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x492030
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x492030
mov ecx, dword [esp + 0x14]
inc esi
push esi
push str.__2a_
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea edx, [esp + 0x24]
push 0x86
push edx
call fcn.004bc8d0
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00510700
lea edx, [esp + 0x20]
push eax
push edx
call fcn.00412dc0
push ecx
mov ecx, dword [0x546560]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov edi, esp
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x20]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004059f0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00405440
lea ecx, [esp + 0x1c]
call fcn.00405700
mov ecx, dword [ebp + 0xe4]
call fcn.004eb5a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4920d9
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4920df
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
jmp 0x4920df
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49210a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x49210a
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x492135
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x492135
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x492160
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x492160
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49256f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
jmp 0x49256f
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], edi
mov edx, dword [eax]
push ecx
push 0xe0
push edi
push eax
call dword [edx + 0x10]
test eax, eax
jl 0x4923c0
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4921aa
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x10]
call fcn.0045f6e0
mov eax, dword [0x54e8bc]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx - 8]
test eax, eax
je 0x49222e
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49222e
mov edx, dword [eax - 0xc]
push ecx
test edx, edx
mov ecx, esp
jl 0x4921ee
mov dword [ecx], eax
mov edx, dword [esp + 0x74]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4921ff
mov eax, dword [0x546560]
mov dword [ecx], eax
mov edx, dword [esp + 0x74]
push edx
call fcn.00405920
sub esp, 8
lea eax, [esp + 0x40]
mov ecx, esp
push eax
call fcn.004217d0
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.004ab2d0
test eax, eax
je 0x49222e
mov eax, 1
mov dword [ebp + 0xc4], eax
mov dword [0x54e8bc], eax
push 1
push 1
push 1
lea edx, [esp + 0x40]
sub esp, 8
mov ecx, esp
push edx
call fcn.004217d0
mov ecx, ebp
call fcn.00498910
mov ecx, ebp
call fcn.0049f7f0
mov eax, dword [esp + 0x78]
cmp dword [eax - 8], 0xa
jle 0x492344
lea ecx, [esp + 0x3c]
call fcn.00424cf0
mov ecx, dword [0x546560]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov eax, dword [edx - 8]
push eax
push ecx
lea eax, [esp + 0x80]
mov ecx, esp
push eax
call fcn.00405440
lea ecx, [esp + 0x20]
call fcn.00492780
push eax
lea ecx, [esp + 0x44]
call fcn.00424ff0
mov esi, dword [esp + 0x50]
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.00424d70
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [esp + 0x24], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], eax
call fcn.004a03c0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x49230c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49233b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49233b
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.00424d40
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [0x54e8bc], eax
mov dword [ebp + 0x190], 0
call fcn.0050fe40
lea ecx, [esp + 0x7c]
call fcn.00405700
lea ecx, [esp + 0x78]
call fcn.00405700
lea ecx, [esp + 0x74]
call fcn.00405700
lea ecx, [esp + 0x70]
call fcn.00405700
lea ecx, [esp + 0x6c]
call fcn.00405700
lea ecx, [esp + 0x68]
call fcn.00405700
lea ecx, [esp + 0x64]
call fcn.00405700
lea ecx, [esp + 0x60]
call fcn.00405700
lea ecx, [esp + 0x5c]
call fcn.00405700
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24
lea eax, [esp + 0x34]
sub esp, 8
neg eax
sbb eax, eax
lea ecx, [esp + 0x40]
mov esi, esp
and eax, ecx
push eax
lea ecx, [esi + 4]
call fcn.00406280
mov ecx, ebp
mov dword [esi], 0x5409d8
call fcn.00492a00
mov edx, dword [0x546560]
mov eax, str.___2b_
test eax, eax
mov dword [esp + 0x14], edx
je 0x492436
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x492436
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x492436
mov ecx, dword [esp + 0x14]
inc esi
push esi
push str.___2b_
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
lea edx, [esp + 0x1c]
push 0x86
push edx
call fcn.004bc8d0
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00510700
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00412dc0
push ecx
mov ecx, dword [0x546560]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov edi, esp
push ecx
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x20]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004059f0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00405440
lea ecx, [esp + 0x1c]
call fcn.00405700
mov ecx, dword [ebp + 0xe4]
call fcn.004eb5a0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4924df
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4924e5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
jmp 0x4924e5
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x492510
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x492510
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49253b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x49253b
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x492566
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x492566
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0045f6e0
lea ecx, [esp + 0x34]
call fcn.0050fe40
lea ecx, [esp + 0x7c]
call fcn.00405700
lea ecx, [esp + 0x78]
call fcn.00405700
lea ecx, [esp + 0x74]
call fcn.00405700
lea ecx, [esp + 0x70]
call fcn.00405700
lea ecx, [esp + 0x6c]
call fcn.00405700
lea ecx, [esp + 0x68]
call fcn.00405700
lea ecx, [esp + 0x64]
call fcn.00405700
lea ecx, [esp + 0x60]
call fcn.00405700
lea ecx, [esp + 0x5c]
call fcn.00405700
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x24
lea ecx, [esp + 0x34]
call fcn.0050fe40
lea ecx, [esp + 0x5c]
mov dword [ebp + 0x190], 0
call fcn.00492600
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x24