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

Disassembly:
push 0xffffffffffffffff
push 0x443288
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4513e0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
xor esi, esi
mov ecx, 7
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
mov dword [esp + 0x70], esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], si
xor bl, bl
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x70], 2
movzx ecx, word [eax]
push ecx
mov byte [esp + 0x19], bl
mov ebp, eax
call fcn.0042a83e
add esp, 4
test eax, eax
je 0x413a34
lea esp, [esp]
movzx edx, word [ebp + 2]
add ebp, 2
push edx
call fcn.0042a83e
add esp, 4
test eax, eax
jne 0x413a20
movzx eax, word [ebp]
cmp ax, si
mov byte [esp + 0x17], 1
mov byte [esp + 0x16], 0
je 0x413b90
jmp 0x413a50
cmp ax, 0x22
jne 0x413a60
test bl, bl
sete bl
jmp 0x413b80
cmp ax, 0x28
jne 0x413a78
test bl, bl
jne 0x413a78
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], 1
jmp 0x413b80
cmp ax, 0x2c
je 0x413a84
cmp ax, 0x29
jne 0x413ab6
test bl, bl
jne 0x413b25
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
call fcn.00411180
lea ecx, [esp + 0x48]
push ecx
lea esi, [esp + 0x20]
call fcn.004159f0
lea edi, [esp + 0x48]
call fcn.00415840
jmp 0x413b80
test bl, bl
jne 0x413b25
cmp byte [esp + 0x16], bl
jne 0x413b25
cmp byte [esp + 0x17], bl
je 0x413b80
or edx, 0xffffffff
sub edx, dword [esp + 0x40]
movzx esi, ax
cmp edx, 1
ja 0x413ade
call fcn.00427e30
mov edi, dword [esp + 0x40]
add edi, 1
lea eax, [esp + 0x2c]
call fcn.00403e80
test al, al
je 0x413b80
mov eax, dword [esp + 0x30]
mov ecx, 8
cmp dword [esp + 0x44], ecx
jae 0x413b09
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x40]
mov word [eax + edx*2], si
cmp dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], edi
jae 0x413b7a
lea eax, [esp + 0x30]
jmp 0x413b7a
movzx esi, ax
or eax, 0xffffffff
sub eax, dword [esp + 0x5c]
cmp eax, 1
ja 0x413b39
call fcn.00427e30
mov edi, dword [esp + 0x5c]
add edi, 1
lea eax, [esp + 0x48]
call fcn.00403e80
test al, al
je 0x413b80
mov eax, dword [esp + 0x4c]
mov ecx, 8
cmp dword [esp + 0x60], ecx
jae 0x413b60
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x5c]
mov word [eax + edx*2], si
cmp dword [esp + 0x60], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], edi
jae 0x413b7a
lea eax, [esp + 0x4c]
mov word [eax + edi*2], 0
movzx eax, word [ebp + 2]
add ebp, 2
test ax, ax
jne 0x413a50
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x413b9f
lea eax, [esp + 0x30]
push 0x447008
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
mov ebx, 8
jne 0x413bc0
mov byte [esp + 0x15], 1
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413bce
lea eax, [esp + 0x30]
push 0x44700c
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413be9
mov byte [esp + 0x15], al
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413bf7
lea eax, [esp + 0x30]
push str.Is64
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413c17
call fcn.004232a0
mov byte [esp + 0x15], al
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413c25
lea eax, [esp + 0x30]
push str.IsIA64
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413c45
call fcn.004232f0
mov byte [esp + 0x15], al
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413c53
lea eax, [esp + 0x30]
push str.IsCmd
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413cb8
lea ecx, [esp + 0x1c]
call fcn.00415980
cmp eax, 1
setne al
test al, al
jne 0x413f3f
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413ca2
mov eax, dword [eax + 4]
mov edx, eax
call fcn.004051c0
test eax, eax
setg byte [esp + 0x15]
jmp 0x413f5d
add eax, 4
mov edx, eax
call fcn.004051c0
test eax, eax
setg byte [esp + 0x15]
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413cc6
lea eax, [esp + 0x30]
push str.IfExists
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413d16
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413cff
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne byte [esp + 0x15]
jmp 0x413f5d
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne byte [esp + 0x15]
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413d24
lea eax, [esp + 0x30]
push str.IsLang
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413d7f
lea ecx, [esp + 0x1c]
call fcn.00415980
cmp eax, 1
setne al
test al, al
jne 0x413f3f
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413d62
mov eax, dword [eax + 4]
jmp 0x413d65
add eax, 4
push 0x453c4a
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
sete byte [esp + 0x15]
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413d8d
lea eax, [esp + 0x30]
push str.IsOS
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413e52
mov edx, str.nooscheck
call fcn.004051c0
test eax, eax
je 0x413dbb
mov byte [esp + 0x15], 1
jmp 0x413f5d
lea ecx, [esp + 0x1c]
call fcn.00415980
cmp eax, 2
setne al
test al, al
jne 0x413f3f
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413de7
mov eax, dword [eax + 4]
jmp 0x413dea
add eax, 4
call fcn.00423230
mov edi, 1
lea esi, [esp + 0x1c]
mov ebp, eax
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413e09
mov eax, dword [eax + 4]
jmp 0x413e0c
add eax, 4
call fcn.00423230
test ebp, ebp
je 0x413e29
test eax, eax
je 0x413e29
mov edi, ebp
call fcn.004230a0
mov byte [esp + 0x15], al
jmp 0x413f5d
push str.Unrecognized_OS_name_in_condition
push 0x4524d8
mov eax, 2
call fcn.0041eee0
mov eax, dword [esp + 0x20]
mov dword [eax + 0x38], 0xb
mov byte [esp + 0x1d], 0
jmp 0x413f5a
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413e60
lea eax, [esp + 0x30]
push str.IsGroupSel
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413eb8
lea ecx, [esp + 0x1c]
call fcn.00415980
cmp eax, 1
setne al
test al, al
jne 0x413f3f
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413e9e
mov eax, dword [eax + 4]
jmp 0x413ea1
add eax, 4
mov ecx, dword [esp + 0x18]
push eax
add ecx, 0x40
push ecx
call fcn.004086b0
mov byte [esp + 0x15], al
jmp 0x413f5d
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x413ec6
lea eax, [esp + 0x30]
push str.IsVar
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
jne 0x413f3f
lea ecx, [esp + 0x1c]
call fcn.00415980
cmp eax, 2
setne al
test al, al
jne 0x413f3f
mov edi, 1
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413f03
mov ebp, dword [eax + 4]
jmp 0x413f06
lea ebp, [eax + 4]
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.004159b0
cmp dword [eax + 0x18], ebx
jb 0x413f1b
mov ecx, dword [eax + 4]
jmp 0x413f1e
lea ecx, [eax + 4]
mov edx, dword [esp + 0x18]
push ebp
push ecx
push edx
call fcn.00408100
add esp, 4
push eax
call fcn.0042a42f
add esp, 8
test eax, eax
sete byte [esp + 0x15]
jmp 0x413f5d
cmp dword [esp + 0x40], 0
je 0x413f5d
push str.Syntax_error_found_in_condition
push 0x4524d8
mov eax, 2
call fcn.0041eee0
add esp, 8
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x413f85
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push ecx
call fcn.0041b220
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x60], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
jb 0x413fa4
mov eax, dword [esp + 0x4c]
push eax
call fcn.00429d64
add esp, 4
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], esi
mov word [esp + 0x4c], si
jb 0x413fc8
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00429d64
add esp, 4
mov al, byte [esp + 0x15]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004289ca
add esp, 0x60
ret 8