Function at 0x10028dfe
Capabilities:
Get common file path
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x1003833d
call fcn.10001a8f
sub esp, 0x3d0
push ebx
push esi
push edi
mov eax, dword [0x1003b164]
lea esi, [ebp + 8]
lea edi, [ebp - 0x370]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x360]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x30]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x38]
xor ebx, ebx
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x380], edi
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x378], ebx
call fcn.1002bfb6
mov esi, 0x105
push esi
lea eax, [ebp - 0x340]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10028ece
push 0x10028f18
push esi
lea eax, [ebp - 0x340]
push eax
call fcn.1002790f
push 0x10028f08
push 0x2e
lea eax, [ebp - 0x6c]
push eax
call fcn.10027659
lea ecx, [ebp - 0x390]
call fcn.1002bfc5
cmp eax, ebx
mov dword [ebp - 0x374], eax
jl 0x10028edc
lea eax, [ebp - 0x378]
push eax
push 1
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp eax, ebx
jne 0x10028f42
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10028f34
call esi
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x390]
call fcn.1002c18d
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.10023cf0
leave
ret 0x34
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10028edc
cmp dword [ebp - 0x378], ebx
jne 0x10028f5e
push 0xa1
push 0x10028fa8
push 0x10028f94
call fcn.100280bc
lea eax, [ebp - 0x374]
push eax
lea ecx, [ebp - 0x390]
call fcn.1002c13a
cmp dword [ebp - 0x374], ebx
jge 0x10029004
push dword [ebp - 0x378]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x374]
jmp 0x10028ede
mov ecx, dword [ebp + 0x34]
cmp ecx, ebx
jbe 0x1002900f
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x374]
push eax
push 0xc0000000
push dword [ebp - 0x378]
lea ecx, [ebp - 0x3b8]
call fcn.10028a60
cmp dword [ebp - 0x374], ebx
mov byte [ebp - 4], 1
jl 0x10029070
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
cmp eax, ebx
mov dword [ebp - 0x374], eax
jl 0x10029070
push 0x2e
lea eax, [ebp - 0x5e]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x100290c6
mov dword [ebp - 0x374], 0x80004005
cmp dword [ebp - 0x378], ebx
je 0x10029084
push dword [ebp - 0x378]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x374], ebx
jge 0x100290ac
xor esi, esi
cmp dword [ebp + 0x34], ebx
jbe 0x100290ac
mov eax, dword [ebp - 0x380]
lea edi, [eax + esi*4]
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc esi
cmp esi, dword [ebp + 0x34]
mov dword [edi], ebx
jb 0x10029093
mov esi, dword [ebp - 0x374]
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 0
call fcn.10028a38
jmp 0x10028ede
lea eax, [ebp - 0x3b8]
push 0x38
xor esi, esi
cmp dword [ebp + 0x2c], ebx
mov dword [ebp - 0x39c], 0xc
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x394], ebx
pop edi
jbe 0x1002910c
mov eax, dword [ebp - 0x384]
mov eax, dword [eax + esi*4]
inc edi
inc edi
cmp eax, ebx
je 0x10029106
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea edi, [edi + eax*2]
inc esi
cmp esi, dword [ebp + 0x2c]
jb 0x100290ec
lea eax, [ebp - 0x3dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp edi, dword [ebp - 0x3c0]
jae 0x10029127
mov edi, dword [ebp - 0x3c0]
lea eax, [ebp - 0x6c]
push eax
push edi
push ebx
push 4
lea eax, [ebp - 0x39c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x37c], eax
jne 0x10029179
call esi
test eax, eax
jg 0x100291c3
call esi
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x37c], ebx
je 0x10029070
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10029070
call esi
cmp eax, 0xb7
je 0x1002914e
push ebx
push ebx
push ebx
push 6
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x100291df
call esi
test eax, eax
jg 0x100291d1
call esi
mov dword [ebp - 0x374], eax
test ebx, ebx
je 0x100291bf
mov eax, dword [ebx + 0x30]
test eax, eax
jge 0x100291b8
mov dword [ebp - 0x374], eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor ebx, ebx
jmp 0x1002915c
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10029156
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x100291a1
mov dword [ebx], edi
mov eax, dword [ebp + 0x28]
push dword [ebp - 0x384]
lea edi, [ebx + 4]
lea esi, [ebp - 0x370]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x34]
and dword [ebx + 0x30], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x14]
lea esi, [ebp - 0x360]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x2c]
movsd dword es:[edi], dword [esi]
push eax
push ebx
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
call fcn.10028bf1
test eax, eax
mov dword [ebp - 0x374], eax
jl 0x100291a7
push 0x100292a8
push 0x64
lea eax, [ebp - 0x134]
push eax
call fcn.10027659
lea eax, [ebp - 0x6c]
push eax
push 0x64
lea eax, [ebp - 0x134]
push eax
call fcn.1002790f
push 0
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.10028c77
test eax, eax
mov dword [ebp - 0x374], eax
jl 0x100291a7
xor esi, esi
cmp dword [ebp + 0x34], esi
jbe 0x100291a7
push esi
push ebx
call fcn.10028bc7
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov ecx, dword [ebp - 0x380]
mov dword [ecx + esi*4], eax
je 0x100292fc
inc esi
cmp esi, dword [ebp + 0x34]
jb 0x1002927f
jmp 0x100291a7
mov dword [ebp - 0x374], 0x8007000e
jmp 0x100291a7