Function at 0x10022740
Capabilities:
Check if file exists
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ab963
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x100d65e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xc8], 0
call fcn.1001ffe0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
call fcn.10006050
mov ecx, eax
call fcn.1002b010
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jbe 0x1002280a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100067b0
cmp dword [ebp - 0x18], 0
je 0x1002280a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 1
sete al
test al, al
je 0x1002280a
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1000fcf0
mov dword [ebp - 0xc8], 1
jmp 0x10023100
lea ecx, [ebp - 0xc4]
call fcn.1001f7b0
mov byte [ebp - 4], 3
push 0xb
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
push str.DisplayIcon
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
call fcn.1000f9f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xcc], SysStringLen
call fcn.1001da20
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100267f0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 6
call fcn.10006050
push ecx
lea eax, [ebp - 0xac]
push eax
push esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1002be60
mov esi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x100228ec
cmp dword [ebp - 0x14], 8
jb 0x100228cf
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000fcf0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x74], 8
jb 0x10022904
push dword [ebp - 0x88]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x44], 8
jb 0x10022930
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c], 8
jb 0x10022959
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x98], 8
jb 0x10022988
push dword [ebp - 0xac]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
cmp dword [ebp - 0x18], eax
jbe 0x10022c23
lea ecx, [ebp - 0x88]
call fcn.10020800
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push 0x100bdb2c
push eax
call fcn.100268b0
add esp, 0xc
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10019820
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10022a1d
cmp dword [ebp - 0x14], 8
jb 0x10022a00
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000fcf0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2c], 8
jb 0x10022a32
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44], 8
jb 0x10022a5b
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 8
jb 0x10022a87
push dword [ebp - 0x88]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp dword [ebp - 0x18], eax
jbe 0x10022afd
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100067b0
cmp dword [ebp - 0x18], 0
je 0x10022afd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 1
sete al
test al, al
je 0x10022afd
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1000fcf0
mov dword [ebp - 0xc8], 1
jmp 0x100230cc
lea ecx, [ebp - 0x88]
call fcn.10020cc0
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x58]
push 0x100bdb2c
push eax
call fcn.100268b0
add esp, 0xc
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10019820
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10022b6c
cmp dword [ebp - 0x14], 8
jb 0x10022b4f
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000fcf0
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x2c], 8
jb 0x10022b81
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x44], 8
jb 0x10022baa
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 8
jb 0x10022bd6
push dword [ebp - 0x88]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp dword [ebp - 0x18], eax
jbe 0x10022c23
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100067b0
cmp dword [ebp - 0x18], 0
je 0x10022c23
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 1
sete al
test al, al
jne 0x10022ad0
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x94]
mov ecx, 6
cmp cx, ax
je 0x10022c61
mov ecx, 9
cmp cx, ax
je 0x10022c61
lea ecx, [ebp - 0x40]
call fcn.1001f7b0
mov dword [ebp - 4], 0xf
mov ebx, 4
jmp 0x10022c72
lea ecx, [ebp - 0x58]
call fcn.1001fb90
mov byte [ebp - 4], 0xe
mov ebx, 2
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc8], ebx
cmp ecx, eax
je 0x10022c8c
push 0xffffffffffffffff
push 0
push eax
call fcn.1000f660
mov dword [ebp - 4], 0xe
test bl, 4
je 0x10022cc6
and ebx, 0xfffffffb
mov dword [ebp - 0xc8], ebx
cmp dword [ebp - 0x2c], 8
jb 0x10022cb2
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 3
test bl, 2
je 0x10022d00
and ebx, 0xfffffffd
mov dword [ebp - 0xc8], ebx
cmp dword [ebp - 0x44], 8
jb 0x10022cec
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push 0xb
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
push str.DisplayIcon
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
call fcn.1000f9f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xcc], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001da20
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100267f0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.10006050
push ecx
lea eax, [ebp - 0xac]
push eax
push esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002be60
mov esi, eax
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10022dd3
cmp dword [ebp - 0x14], 8
jb 0x10022db6
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1000fcf0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x2c], 8
jb 0x10022de8
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x44], 8
jb 0x10022e11
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x74], 8
jb 0x10022e3d
push dword [ebp - 0x88]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x98], 8
jb 0x10022e6f
push dword [ebp - 0xac]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
cmp dword [ebp - 0x18], eax
jbe 0x100230b7
lea ecx, [ebp - 0x88]
call fcn.10020800
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x58]
push 0x100bdb2c
push eax
call fcn.100268b0
add esp, 0xc
mov byte [ebp - 4], 0x15
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10019820
add esp, 4
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x28]
call fcn.10004bb0
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x2c], 8
jb 0x10022eeb
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x44], 8
jb 0x10022f14
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 8
jb 0x10022f40
push dword [ebp - 0x88]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp dword [ebp - 0x18], eax
jbe 0x10022fcd
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100067b0
cmp dword [ebp - 0x18], 0
je 0x10022fcd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x10022fcd
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1000fd90
or ebx, 1
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.100103e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.100103e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.100103e0
jmp 0x10023149
lea ecx, [ebp - 0x88]
call fcn.10020cc0
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x58]
push 0x100bdb2c
push eax
call fcn.100268b0
add esp, 0xc
mov byte [ebp - 4], 0x18
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.10019820
add esp, 4
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x28]
call fcn.10004bb0
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x2c], 8
jb 0x10023023
push dword [ebp - 0x40]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x44], 8
jb 0x1002304c
push dword [ebp - 0x58]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x74], 8
jb 0x10023078
push dword [ebp - 0x88]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
cmp dword [ebp - 0x18], eax
jbe 0x100230b7
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100067b0
lea eax, [ebp - 0x28]
push eax
call fcn.1002cee0
add esp, 4
test al, al
jne 0x10022f8d
push 0x100bd6c4
mov ecx, edi
call fcn.1000fb40
or ebx, 1
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0xb0], 8
jb 0x100230e7
push dword [ebp - 0xc4]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0xb0], 7
mov dword [ebp - 0xb4], eax
mov word [ebp - 0xc4], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x10023115
push dword [ebp - 0x28]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x5c], 8
jb 0x10023139
push dword [ebp - 0x70]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], eax
mov word [ebp - 0x70], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007e654
mov esp, ebp
pop ebp
ret