Function at 0x1002ab6b
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4f20]
mov eax, 0x4f20
call fcn.100333a0
push 0xffffffffffffffff
push 0x1005d1db
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10081730]
xor eax, ebp
mov dword [ebp + 0x4f1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x4f28]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x4f2c]
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x4f30]
mov dword [ebp - 4], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.10001681
lea eax, [ebp + 0x70]
push eax
call fcn.1002a7b2
add esp, 0x24
push 7
pop edi
push ebx
lea ecx, [ebp + 0xe0]
mov dword [ebp + 0xf8], edi
call fcn.100011bf
cmp dword [ebp + 0x4f48], ebx
mov byte [ebp - 4], 2
jne 0x1002ac4c
push str.npslm20w.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
lea eax, [ebp + 0xc4]
push 2
push eax
call fcn.10004eb1
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 3
call fcn.10001537
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 2
call fcn.1000131a
jmp 0x1002aef6
push ebx
lea ecx, [ebp + 0x4f34]
call fcn.10006c1d
cmp word [eax], 0x24
jne 0x1002aede
push 8
push ebx
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0x4f34]
call fcn.100071df
mov eax, dword [ebp + 0x4f48]
add eax, 0xfffffff8
push eax
push 8
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x4f34]
mov byte [ebp - 4], 4
call fcn.100071df
push str._logapp_
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 5
call fcn.10001681
lea eax, [ebp + 0x8c]
push eax
xor esi, esi
lea eax, [ebp + 0xc4]
inc esi
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], esi
call fcn.1000707e
cmp al, 1
pop ecx
pop ecx
je 0x1002ad03
push str._appdir_
lea ecx, [ebp + 0xa8]
call fcn.10001681
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xa8]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 3
call fcn.1000707e
cmp al, 1
pop ecx
pop ecx
mov byte [ebp - 0xd], bl
jne 0x1002ad07
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 2
je 0x1002ad1e
and dword [ebp - 0x14], 0xfffffffd
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.1000131a
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 5
je 0x1002ad38
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.1000131a
cmp byte [ebp - 0xd], bl
lea eax, [ebp + 0x8c]
push eax
je 0x1002ae70
lea eax, [ebp + 0xa8]
push eax
call fcn.10004ff4
pop ecx
pop ecx
mov byte [ebp - 4], 8
call fcn.10008250
cmp eax, esi
jne 0x1002ae34
push ebx
push str.Roaming
lea ecx, [ebp + 0xa8]
call fcn.10006efd
cmp eax, 0xffffffff
je 0x1002ad90
push 0x100604d0
push 8
push eax
lea ecx, [ebp + 0xa8]
call fcn.10021072
call fcn.1002a690
test eax, eax
lea eax, [ebp + 0xa8]
jne 0x1002ade8
push str.Local
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp + 0xc4]
push eax
mov byte [ebp - 4], 9
call fcn.1000971d
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xa
call fcn.10001537
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.1000131a
jmp 0x1002ae5e
push str.LocalLow
push eax
lea eax, [ebp + 0xc4]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xb
call fcn.1000971d
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xc
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.1000131a
lea ecx, [ebp + 0xc4]
jmp 0x1002ae61
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.1000971d
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xd
call fcn.10001537
lea ecx, [ebp - 0x68]
push ebx
push esi
call fcn.1000131a
lea ecx, [ebp + 0xa8]
jmp 0x1002aeba
lea eax, [ebp + 0xc4]
push eax
call fcn.10004ff4
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0xe
call fcn.1000971d
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xf
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.1000131a
lea ecx, [ebp + 0xc4]
push ebx
push esi
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 2
call fcn.1000131a
jmp 0x1002aef3
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x4f34]
push eax
lea ecx, [ebp + 0xe0]
call fcn.10001537
xor esi, esi
inc esi
push 0x100606f0
lea eax, [ebp + 0xe0]
push eax
lea eax, [ebp + 0xc4]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x70]
push ecx
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x10
call fcn.1000971d
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x11
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 2
call fcn.1000131a
cmp dword [ebp + 0xf8], 8
mov eax, dword [ebp + 0xe4]
jae 0x1002af66
lea eax, [ebp + 0xe4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002af83
mov ecx, dword [ebp - 0x18]
push str.false
call fcn.10001681
jmp 0x1002b141
cmp dword [ebp + 0xf8], 8
mov eax, dword [ebp + 0xe4]
jae 0x1002af98
lea eax, [ebp + 0xe4]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002af71
push 0x4e1e
lea eax, [ebp + 0xfe]
push ebx
push eax
mov word [ebp + 0xfc], bx
call fcn.10031d30
add esp, 0xc
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0x270f
lea eax, [ebp + 0xfc]
push eax
push edi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002b004
cmp edi, ebx
je 0x1002af71
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002af71
lea eax, [ebp]
push eax
call fcn.1001e3b3
lea eax, [ebp]
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x12
call fcn.10007674
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 0x13
call fcn.10001537
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.1000131a
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 7
call fcn.100011bf
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 0x14
call fcn.1001c017
pop ecx
push ebx
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x50], 7
call fcn.100011bf
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp edi, ebx
je 0x1002b08b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
call edi
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x1002b0b9
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
je 0x1002b18b
mov dword [ebp - 0x14], ebx
mov ax, word [ebp - 0x28]
cmp ax, word [ebp - 0x4c]
jne 0x1002b0fc
mov ax, word [ebp - 0x26]
cmp ax, word [ebp - 0x4a]
jne 0x1002b0fc
mov ax, word [ebp - 0x22]
cmp ax, word [ebp - 0x46]
jne 0x1002b0fc
mov ax, word [ebp - 0x20]
cmp ax, word [ebp - 0x44]
jne 0x1002b0fc
mov ax, word [ebp - 0x1e]
cmp ax, word [ebp - 0x42]
jne 0x1002b0fc
mov ax, word [ebp - 0x1c]
cmp ax, word [ebp - 0x40]
je 0x1002b18b
sub dword [ebp - 0x30], 0x989680
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
call edi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x1002b0bc
mov ecx, dword [ebp - 0x18]
push str.false
call fcn.10001681
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x4f34]
call fcn.1000131a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4f1c]
xor ecx, ebp
call fcn.10031c08
add ebp, 0x4f20
leave
ret
mov dword [ebp - 0x14], ebx
mov edi, 0x10070a2c
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
lea eax, [ebp + 0x38]
push str._d_d_d_d_d_d
push eax
call fcn.10007397
sub dword [ebp - 0x38], 0x989680
add esp, 0x20
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10004fad
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 0x16
call fcn.1000971d
push edi
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x17
call fcn.10004fad
lea ecx, [ebp + 0x38]
push ecx
push eax
lea eax, [ebp + 0xa8]
push eax
mov byte [ebp - 4], 0x18
call fcn.1000971d
add esp, 0x30
push ebx
push esi
lea ecx, [ebp - 0x68]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x1c
call fcn.1000131a
push 0x8003
push dword [ebp + 0x4f30]
lea eax, [ebp + 0xa8]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.1000163e
lea eax, [ebp + 0xc4]
push eax
call fcn.1002a3c1
add esp, 0x28
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0x1d
call fcn.10001537
push ebx
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x1c
call fcn.1000131a
lea eax, [ebp + 0xfc]
push eax
lea ecx, [ebp + 0x8c]
call fcn.10001681
cmp dword [ebp + 0xc0], 8
mov eax, dword [ebp + 0xac]
mov byte [ebp - 4], 0x1e
jae 0x1002b2c3
lea eax, [ebp + 0xac]
push eax
lea ecx, [ebp + 0xc4]
call fcn.10001681
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xc4]
push eax
mov byte [ebp - 4], 0x1f
call fcn.1000707e
dec al
pop ecx
pop ecx
neg al
sbb al, al
push ebx
inc al
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 0xd], al
call fcn.1000131a
push ebx
push esi
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 0x1c
call fcn.1000131a
cmp byte [ebp - 0xd], bl
jne 0x1002b339
push ebx
push esi
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0x15
call fcn.1000131a
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x1002b193
jmp 0x1002b116
mov ecx, dword [ebp - 0x18]
push 0x10070ac4
call fcn.10001681
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.1000131a
jmp 0x1002b123