Function at 0x438139
Capabilities:
Get file attributes

Disassembly:
push ebp
sub esp, 0x4c
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push 0x1b8
mov eax, 0x521d01
call fcn.0047b854
mov esi, dword [ebp + 0x5c]
mov ebx, dword [ebp + 0x58]
push 0x30
xor edi, edi
push edi
push esi
mov dword [ebp + 0x2c], ebx
call fcn.0047b1c0
mov eax, dword [ebx]
mov eax, dword [eax + 4]
add esp, 0xc
cmp dword [eax + ebx + 0x14], edi
je 0x438503
lea eax, [ebp + 0x30]
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
mov dword [ebp + 0x28], edi
mov dword [ebp - 4], edi
call fcn.00412b36
mov eax, dword [ebp + 0x44]
dec eax
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 1
call fcn.0040fcb1
cmp word [eax], 0x5c
jne 0x4381bc
mov eax, dword [ebp + 0x44]
push 0xffffffffffffffff
dec eax
push eax
lea ecx, [ebp + 0x30]
call fcn.00403761
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x4381c8
lea eax, [ebp + 0x34]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0047ff1e
pop ecx
pop ecx
test eax, eax
je 0x438230
lea eax, [ebp - 0x78]
push eax
mov ecx, ebx
call fcn.0042b1ea
push eax
lea eax, [ebp + 8]
push str.stat_
push eax
mov byte [ebp - 4], 2
call fcn.0040bccd
add esp, 0xc
push str.__failed
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 3
call fcn.004104cc
add esp, 0xc
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 4
call fcn.0040919e
push 0x580e98
lea eax, [ebp - 0xc8]
push eax
call fcn.0047b16b
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], eax
mov eax, 0x1a4
mov word [ebp - 0x3a], ax
mov eax, dword [ebp + 0x34]
jae 0x438269
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x43827d
mov eax, 0xff7f
and word [ebp - 0x3a], ax
cmp dword [ebp + 0x48], 8
movzx eax, word [ebp - 0x3a]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x34]
jae 0x438295
lea eax, [ebp + 0x34]
push edi
push 0x2000000
push 3
push edi
push 7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp + 0x28], ebx
cmp ebx, 0xffffffff
jne 0x43830a
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp - 0x78]
push eax
call fcn.0042b1ea
push eax
lea eax, [ebp + 8]
push str.CreateFileW_
push eax
mov byte [ebp - 4], 5
call fcn.0040bccd
add esp, 0xc
push str.__failed
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 6
call fcn.004104cc
add esp, 0xc
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.0040919e
push 0x580e98
lea eax, [ebp - 0xe4]
jmp 0x43822a
push 0x34
lea eax, [ebp - 0xac]
push edi
push eax
call fcn.0047b1c0
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x438386
mov ecx, dword [ebp + 0x2c]
lea eax, [ebp - 0x78]
push eax
call fcn.0042b1ea
push eax
lea eax, [ebp + 8]
push str.GetFileInformation_
push eax
mov byte [ebp - 4], 8
call fcn.0040bccd
add esp, 0xc
push str.__failed
push eax
lea eax, [ebp - 0x5c]
push eax
mov byte [ebp - 4], 9
call fcn.004104cc
add esp, 0xc
push eax
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xa
call fcn.0040919e
push 0x580e98
lea eax, [ebp - 0x100]
jmp 0x43822a
mov eax, dword [ebp - 0x90]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x7c]
push ebx
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp + 0x30]
call fcn.004036a7
mov al, 1
jmp 0x438505
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x50
leave
ret