Function at 0x492c50
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 0x492c7d
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x492cd2
push ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, esp
jl 0x492ca4
mov dword [esi], eax
mov ecx, dword [esp + 0x6c]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x492cc6
mov edx, dword [0x547570]
mov dword [esi], edx
mov eax, dword [esp + 0x6c]
test eax, eax
mov edi, eax
je 0x492cbd
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
call fcn.0048f3e0
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x492d25
push ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov esi, esp
jl 0x492cf9
mov dword [esi], eax
mov eax, dword [esp + 0x68]
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x492d1b
mov ecx, dword [0x547570]
mov dword [esi], ecx
mov eax, dword [esp + 0x68]
test eax, eax
mov edi, eax
je 0x492d12
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
call fcn.0048f3e0
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 0x492dbb
mov eax, dword [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00510fb0
push 0
push 1
push 0
lea edx, [esp + 0x38]
sub esp, 8
mov ecx, esp
push edx
call fcn.004216a0
mov ecx, ebp
call fcn.00499860
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x492db2
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x492db2
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00510fb0
mov eax, dword [ebp + 0x3c]
push 0x19
lea ecx, [esp + 0x38]
mov esi, dword [eax]
call fcn.00511570
mov ecx, dword [ebp + 0x3c]
push eax
push ecx
call dword [esi + 0x38]
lea ecx, [esp + 0x34]
call fcn.00510740
lea ecx, [esp + 0x2c]
jmp 0x493529
mov edx, dword [esp + 0x5c]
mov eax, dword [edx - 8]
test eax, eax
je 0x4934c8
lea ecx, [esp + 0x34]
call fcn.005107a0
mov eax, dword [0x547570]
push ecx
mov esi, esp
mov ecx, str._22_
test ecx, ecx
mov dword [esi], eax
je 0x492e1a
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x492e1a
push edi
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x492e1a
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.004e5f90
test eax, eax
je 0x493525
mov eax, dword [esp + 0x38]
test eax, eax
je 0x493525
lea edx, [esp + 0x18]
lea ecx, [esp + 0x34]
push edx
call fcn.00511000
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [0x547574]
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x492e93
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x492e93
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
test bl, 0x10
je 0x492ea1
cmp ebx, 0xffffffff
jne 0x493103
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.00420cc0
cmp esi, edi
je 0x492ede
cmp word [esi], di
jne 0x492ede
mov eax, dword [0x555b44]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x492ef5
mov edx, dword [eax]
push eax
call dword [edx + 4]
jmp 0x492ef5
mov eax, dword [0x555b44]
lea edx, [esp + 0x10]
push edx
push 0x543354
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x14]
lea ecx, [esp + 0x24]
call fcn.00424b60
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4930cf
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.00406370
mov ecx, ebp
mov dword [esi], 0x5419d8
call fcn.00493950
mov edx, dword [0x547570]
mov eax, str.__2a_
test eax, eax
mov dword [esp + 0x14], edx
je 0x492f80
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x492f80
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x492f80
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.004bd990
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00511000
lea edx, [esp + 0x20]
push eax
push edx
call fcn.00412c10
push ecx
mov ecx, dword [0x547570]
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.004ec160
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x493029
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x49302f
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
jmp 0x49302f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49305a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x49305a
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x493085
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x493085
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4930b0
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4930b0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4934bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
jmp 0x4934bf
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 0x493310
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4930fa
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x10]
call fcn.0045ffc0
mov eax, dword [0x54f92c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx - 8]
test eax, eax
je 0x49317e
mov eax, dword [esp + 0x70]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49317e
mov edx, dword [eax - 0xc]
push ecx
test edx, edx
mov ecx, esp
jl 0x49313e
mov dword [ecx], eax
mov edx, dword [esp + 0x74]
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x49314f
mov eax, dword [0x547570]
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.004216a0
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.004ac230
test eax, eax
je 0x49317e
mov eax, 1
mov dword [ebp + 0xc4], eax
mov dword [0x54f92c], eax
push 1
push 1
push 1
lea edx, [esp + 0x40]
sub esp, 8
mov ecx, esp
push edx
call fcn.004216a0
mov ecx, ebp
call fcn.00499860
mov ecx, ebp
call fcn.004a0740
mov eax, dword [esp + 0x78]
cmp dword [eax - 8], 0xa
jle 0x493294
lea ecx, [esp + 0x3c]
call fcn.00424bd0
mov ecx, dword [0x547570]
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.004936d0
push eax
lea ecx, [esp + 0x44]
call fcn.00424ed0
mov esi, dword [esp + 0x50]
xor ebx, ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.00424c50
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.004a1310
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x49325c
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49328b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49328b
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.00424c20
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [0x54f92c], eax
mov dword [ebp + 0x190], 0
call fcn.00510740
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.00406370
mov ecx, ebp
mov dword [esi], 0x5419d8
call fcn.00493950
mov edx, dword [0x547570]
mov eax, str.___2b_
test eax, eax
mov dword [esp + 0x14], edx
je 0x493386
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, edi
je 0x493386
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x493386
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.004bd990
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00511000
lea edx, [esp + 0x28]
push eax
push edx
call fcn.00412c10
push ecx
mov ecx, dword [0x547570]
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.004ec160
mov eax, dword [esp + 0x24]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49342f
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x493435
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
jmp 0x493435
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x20]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x493460
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x493460
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x49348b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x49348b
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4934b6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4934b6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0045ffc0
lea ecx, [esp + 0x34]
call fcn.00510740
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.00510740
lea ecx, [esp + 0x5c]
mov dword [ebp + 0x190], 0
call fcn.00493550
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x24