Function at 0x438826
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb20
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xae4], ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
inc esi
mov dword [ebp - 0xab8], eax
mov dword [ebp - 0xad8], ecx
mov ebx, edi
mov dword [ebp - 0xac0], ebx
cmp eax, 0xffffffff
je 0x438f26
test edx, edx
jne 0x438878
mov edx, 0x40aad0
push 1
push 0x40ab0c
push edx
lea eax, [ebp - 0xb1c]
xor ecx, ecx
push eax
lea edx, [ebp - 0xab8]
call fcn.00436af8
test eax, eax
je 0x438f26
mov eax, dword [0x444f94]
test eax, eax
je 0x4388ea
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4388ea
push 0x100
lea eax, [ebp - 0xaac]
push eax
push 0x26d6
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4388ea
lea eax, [ebp - 0xaac]
push eax
push edi
push 0x5c5
push dword [0x444f94]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xb1c]
call fcn.0043699f
mov edi, eax
mov dword [ebp - 0xaec], edi
test edi, edi
je 0x438f26
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x294]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4059e8
push edi
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
mov dword [ebp - 0xacc], edi
pop ecx
pop ecx
test edi, edi
je 0x438f12
mov eax, dword [ebp - 0xab8]
mov dword [ebp - 0xabc], eax
push edi
push 0x40a188
push 4
call fcn.0041ea5f
mov ecx, dword [ebp - 0xabc]
lea eax, [ebp - 0xafc]
add esp, 0xc
mov edx, edi
push eax
xor eax, eax
push eax
call fcn.00422ff3
test eax, eax
je 0x438ef2
mov ecx, dword [ebp - 0xabc]
mov edx, edi
mov dword [ebp - 0xac8], 1
call fcn.00422ea6
mov edi, eax
mov ecx, edi
mov dword [ebp - 0xae8], edi
call fcn.0041de27
cmp edi, 1
jb 0x438ef2
mov edi, dword [ebp - 0xac8]
mov ecx, edi
call fcn.0041dfa0
inc edi
lea ecx, [ebp - 0xafc]
mov dword [ebp - 0xac8], edi
call fcn.0043699f
mov dword [ebp - 0xac4], eax
test eax, eax
je 0x438ee6
push 0x409c4c
push eax
mov dword [ebp - 0xad4], eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edi, eax
xor eax, eax
mov dword [ebp - 0xad0], edi
mov ebx, eax
mov dword [ebp - 0xab0], eax
mov dword [ebp - 0xab4], ebx
pop ecx
pop ecx
test edi, edi
je 0x438bae
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x438a0a
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea eax, [ecx + 5]
xor ecx, ecx
mov dword [ebp - 0xae0], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov ebx, eax
mov dword [ebp - 0xadc], ebx
pop ecx
test ebx, ebx
je 0x438ba1
add edi, 2
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
pop ecx
test eax, eax
jne 0x438a7a
push 2
pop ebx
xor eax, eax
cmp ax, word [edi]
je 0x438a74
add edi, ebx
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswalnum]
pop ecx
test eax, eax
je 0x438a5c
mov ebx, dword [ebp - 0xadc]
mov edx, dword [ebp - 0xae0]
mov ecx, ebx
push edi
call fcn.0040c010
push 0x2c
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x438ab4
lea ecx, [edi + 2]
test ecx, ecx
je 0x438aa7
call fcn.0041f258
jmp 0x438aa9
xor eax, eax
mov dword [ebp - 0xab4], eax
xor eax, eax
mov word [edi], ax
push 0x40a1b8
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x438b07
mov ecx, dword [ebp - 0xae4]
lea edx, [ebp - 0x294]
push 0x103
call fcn.0041ec19
push dword [ebp - 0xacc]
lea eax, [ebp - 0x294]
mov dword [ebp - 0xab0], 1
push eax
push 0x40a1cc
push 4
call fcn.0041ea5f
add esp, 0x10
jmp 0x438b94
xor eax, eax
lea edx, [ebp - 0xab8]
push eax
push eax
push ebx
lea eax, [ebp - 0xb0c]
xor ecx, ecx
push eax
call fcn.00436af8
test eax, eax
je 0x438b88
lea ecx, [ebp - 0xb0c]
call fcn.0043699f
mov edi, eax
test edi, edi
je 0x438b88
push ecx
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0xb0c]
call fcn.004373a9
test eax, eax
je 0x438b73
push dword [ebp - 0xacc]
lea eax, [ebp - 0x294]
mov dword [ebp - 0xab0], 1
push eax
push 0x40a1cc
push 4
call fcn.0041ea5f
add esp, 0x10
push edi
call fcn.00441807
mov edi, dword [ebp - 0xab8]
pop ecx
mov dword [ebp - 0xabc], edi
jmp 0x438b94
mov eax, dword [ebp - 0xab8]
mov dword [ebp - 0xabc], eax
push ebx
call fcn.00441807
mov edi, dword [ebp - 0xad0]
pop ecx
mov ebx, dword [ebp - 0xab4]
xor eax, eax
mov word [edi], ax
jmp 0x438bc5
push dword [ebp - 0xac4]
push 0x40a200
push 2
pop eax
push eax
call fcn.0041ea5f
add esp, 0xc
cmp dword [ebp - 0xab0], 0
je 0x439026
xor eax, eax
lea ecx, [ebp - 0x49c]
mov ebx, eax
mov edx, 0x103
push 0x4015c0
mov dword [ebp - 0xab4], ebx
call fcn.0040c010
test edi, edi
je 0x438ebc
push dword [ebp - 0xad4]
lea ecx, [ebp - 0x8c]
push 0x3f
pop edx
call fcn.0040c010
lea eax, [ebp - 0x8c]
push 0x4059e8
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [ebp - 0xad0], eax
pop ecx
pop ecx
test eax, eax
je 0x438c39
lea ecx, [eax + 2]
mov dword [ebp - 0xad4], ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
mov dword [ebp - 0xab0], eax
xor edi, edi
mov eax, ebx
pop ecx
sub eax, edi
je 0x438d0b
sub eax, 1
je 0x438c70
sub eax, 1
je 0x438d0b
sub eax, 1
jne 0x438db4
lea eax, [ebp - 0x294]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x6a4]
call fcn.0040c010
test eax, eax
js 0x438d9d
push 2
pop esi
push 0x5c
pop ebx
lea ecx, [ebp - 0x6a4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, di
jne 0x438c9e
sub ecx, edx
sar ecx, 1
je 0x438cc8
cmp word [ebp + ecx*2 - 0x6a6], bx
jne 0x438cc8
test ecx, ecx
je 0x438cc8
xor eax, eax
mov word [ebp + ecx*2 - 0x6a6], ax
jmp 0x438c95
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp - 0xab4]
cmp eax, 0xffffffff
je 0x438d9d
test al, 0x10
je 0x438d9d
mov esi, 0x104
lea eax, [ebp - 0x49c]
push esi
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x438d95
lea eax, [ebp - 0x294]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x8ac]
call fcn.0040c010
test eax, eax
js 0x438d9d
push 2
pop esi
push 0x5c
pop ebx
lea ecx, [ebp - 0x8ac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, di
jne 0x438d35
sub ecx, edx
sar ecx, 1
je 0x438d5f
cmp word [ebp + ecx*2 - 0x8ae], bx
jne 0x438d5f
test ecx, ecx
je 0x438d5f
xor eax, eax
mov word [ebp + ecx*2 - 0x8ae], ax
jmp 0x438d2c
lea eax, [ebp - 0x8ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [ebp - 0xab4]
cmp eax, 0xffffffff
je 0x438d9d
test al, 0x10
je 0x438d9d
mov esi, 0x104
lea eax, [ebp - 0x49c]
push esi
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x438d9d
cmp eax, esi
jbe 0x438db4
lea eax, [ebp - 0x294]
mov edx, 0x103
push eax
lea ecx, [ebp - 0x49c]
call fcn.0040c010
inc ebx
mov dword [ebp - 0xab4], ebx
mov ebx, edi
push 0x405790
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x438e10
push 0x4057c0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x438dff
lea eax, [ebp - 0x49c]
mov ecx, edi
push eax
push dword [ebp - 0xab0]
push dword [ebp - 0xabc]
call dword [0x446624]
call edi
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test ebx, ebx
je 0x438e10
mov esi, edi
jmp 0x438e34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x438e21
push 0x57
pop esi
test esi, esi
jle 0x438e2c
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x439000
cmp dword [ebp - 0xad8], 0
je 0x43900e
mov ebx, dword [ebp - 0xab0]
cmp ebx, 0x8000
jb 0x438fd6
push 0xc
call fcn.0044180c
mov esi, eax
pop ecx
test esi, esi
jne 0x438f3d
cmp dword [0x443534], 0xffffffff
jne 0x438e79
push ecx
push 2
pop eax
mov edx, eax
call fcn.0041e530
push 2
pop eax
mov edx, 0x405978
mov ecx, eax
call fcn.0041e988
mov esi, 0x8007000e
mov dword [ebp - 0xac0], esi
mov ecx, 0x40a298
push 2
mov edx, esi
pop eax
push edx
push ebx
push ecx
push eax
call fcn.0041ea5f
mov ebx, dword [ebp - 0xab4]
add esp, 0x10
cmp dword [ebp - 0xad0], 0
jne 0x438bf9
mov ebx, dword [ebp - 0xac0]
push dword [ebp - 0xac4]
call fcn.00441807
pop ecx
lea eax, [ebp - 0xafc]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x438ef2
mov edi, dword [ebp - 0xac8]
cmp edi, dword [ebp - 0xae8]
jbe 0x4389aa
xor eax, eax
push 0x4059e8
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
mov edi, eax
mov dword [ebp - 0xacc], eax
pop ecx
pop ecx
test edi, edi
jne 0x438946
push dword [ebp - 0xaec]
call fcn.00441807
pop ecx
test esi, esi
js 0x438f26
test ebx, ebx
jne 0x438f28
mov ebx, esi
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x49c]
mov dword [esi], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x438f48
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea edi, [ecx + 1]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov dword [esi + 4], eax
pop ecx
test eax, eax
jne 0x438fa7
cmp dword [0x443534], 0xffffffff
jne 0x438f8c
push ecx
push 2
pop eax
mov edx, eax
call fcn.0041e530
push 2
pop eax
mov edx, 0x405978
mov ecx, eax
call fcn.0041e988
push esi
call fcn.00441835
pop ecx
jmp 0x438e88
lea ecx, [ebp - 0x49c]
mov edx, edi
push ecx
mov ecx, eax
call fcn.0040c010
mov ecx, dword [ebp - 0xad8]
mov dword [esi + 8], ebx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x438fcb
mov dword [ecx], esi
jmp 0x438fcd
mov dword [eax], esi
xor eax, eax
mov dword [ecx + 4], esi
mov esi, eax
jmp 0x43900e
cmp dword [0x443534], 0xffffffff
jne 0x438fea
push ecx
push 2
pop eax
mov edx, eax
call fcn.0041e530
push 2
pop eax
mov edx, 0x4099a0
mov ecx, eax
call fcn.0041e988
mov esi, 0x80004003
jmp 0x439006
mov ebx, dword [ebp - 0xab0]
test esi, esi
js 0x438e8d
mov ebx, dword [ebp - 0xab0]
lea edx, [ebp - 0x49c]
push 4
mov ecx, 0x40a26c
jmp 0x438e9c
test bl, 2
je 0x43903c
mov eax, 0x80070003
mov ebx, eax
mov esi, eax
mov dword [ebp - 0xac0], ebx
jmp 0x439042
mov ebx, dword [ebp - 0xac0]
push ebx
push dword [ebp - 0xac4]
push 0x40a2d8
push 2
pop eax
push eax
call fcn.0041ea5f
add esp, 0x10
jmp 0x438ec2