Function at 0x42f330
Capabilities:
Get file attributes

Disassembly:
push 0x118
mov eax, 0x442686
call fcn.004306bd
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x110], ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x124], ebx
call fcn.0040ec40
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x110], 1
cmp dword [ebx + 0x10], esi
jbe 0x42f700
cmp dword [ebx + 0x14], 8
jb 0x42f386
mov eax, dword [ebx]
jmp 0x42f388
mov eax, ebx
lea ecx, [ebp - 0x118]
push ecx
push 0x409e18
push eax
call fcn.0043168d
mov eax, dword [ebp - 0x118]
add esp, 0xc
cmp word [eax], si
je 0x42f3c3
mov dword [ebp - 0x10c], 0x8007010b
push 0x446864
lea eax, [ebp - 0x10c]
push eax
call fcn.00430608
cmp dword [ebx + 0x14], 8
jb 0x42f3cd
mov eax, dword [ebx]
jmp 0x42f3cf
mov eax, ebx
lea ecx, [ebp - 0xe4]
push 3
mov dword [ebp - 0xe8], ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040dec5
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push dword [ebp - 0xe8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0xe4]
cmp dword [ebp - 0xe8], eax
je 0x42f419
push dword [ebp - 0xe8]
call fcn.0043040c
pop ecx
test esi, esi
jle 0x42f70a
push 2
pop edx
add esi, edx
xor ecx, ecx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x11c], esi
neg ecx
or ecx, eax
push ecx
call fcn.00431325
mov esi, eax
pop ecx
mov dword [ebp - 0x10c], esi
test esi, esi
jne 0x42f460
mov dword [ebp - 0x10c], 0x8007000e
push 0x44690c
jmp 0x42f3b7
xor eax, eax
mov edi, esi
stosw word es:[edi], ax
cmp dword [ebx + 0x14], 8
jb 0x42f470
mov eax, dword [ebx]
jmp 0x42f472
mov eax, ebx
lea ecx, [ebp - 0xe4]
push 3
mov dword [ebp - 0xe8], ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040dec5
push dword [ebp - 0x11c]
xor eax, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0xe8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [ebp - 0xe4]
cmp dword [ebp - 0xe8], eax
je 0x42f4c1
push dword [ebp - 0xe8]
call fcn.0043040c
pop ecx
push esi
test edi, edi
jne 0x42f4f6
call fcn.004304b4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42f4e0
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x11c], eax
push 0x446864
lea eax, [ebp - 0x11c]
jmp 0x42f3bd
xor eax, eax
xor edi, edi
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
call fcn.0040dbce
lea eax, [ebp - 0x120]
push eax
push 0x405fcc
push esi
mov dword [ebp - 4], 1
call fcn.0043168d
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x48], cx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
call fcn.0040dbce
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.0040dbce
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42f56e
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0043165f
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040de7c
mov edi, dword [ebp - 0x10c]
test esi, esi
je 0x42f598
push edi
lea ecx, [ebp - 0x48]
call fcn.0040dbce
mov ebx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x120]
xor ecx, ecx
cmp word [eax], cx
je 0x42f5ee
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.0040dbce
mov eax, dword [ebp - 0x2c]
or ebx, 2
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x110], ebx
jae 0x42f5d7
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0043165f
pop ecx
pop ecx
xor ecx, ecx
mov byte [ebp - 0x105], 1
test eax, eax
jne 0x42f5f4
mov byte [ebp - 0x105], cl
test bl, 2
je 0x42f60d
push ecx
and ebx, 0xfffffffd
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x110], ebx
call fcn.0040de7c
cmp byte [ebp - 0x105], 0
je 0x42f683
push 0x405fcc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0041ff6f
mov esi, eax
lea eax, [ebp - 0x120]
push eax
push 0x405fcc
push 0
mov byte [ebp - 4], 3
call fcn.0043168d
add esp, 0xc
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ff4c
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040da5c
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040de7c
push esi
push 1
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 2
call fcn.0040de7c
jmp 0x42f59e
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x42f68f
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
mov esi, eax
jae 0x42f6a4
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x118]
push eax
push 0x409e18
push ecx
call fcn.0043168d
mov ebx, dword [ebp - 0x114]
add esp, 0xc
cmp esi, 0xffffffff
je 0x42f6e1
mov eax, dword [ebp - 0x118]
xor esi, esi
cmp word [eax], si
jne 0x42f6e3
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call fcn.0040dabb
jmp 0x42f6e3
xor esi, esi
push edi
call fcn.004304b4
pop ecx
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040de7c
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.0040de7c
mov eax, ebx
call fcn.00430740
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42f71e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x114], eax
push 0x446864
lea eax, [ebp - 0x114]
jmp 0x42f3bd