Function at 0x1001a950
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x1004f6a8
push eax
mov dword fs:[0], esp
sub esp, 0x3d0
cmp dword [ecx + 0x14], 0x10
push ebx
push esi
push edi
jb 0x1001a97f
mov ecx, dword [ecx]
push ecx
push 2
xor edx, edx
call fcn.1003c780
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001a9a9
xor al, al
mov ecx, dword [esp + 0x3dc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3e4], 0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
je 0x1001ab39
lea eax, [esp + 0x1d8]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1001aac9
lea ecx, [esp + 0x1d8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001aa07
sub ecx, edx
cmp byte [esp + ecx + 0x1d7], 0x5c
jne 0x1001aa21
mov byte [esp + ecx + 0x1d7], al
cmp byte [esp + 0x1d8], 0
jne 0x1001aa2f
xor ecx, ecx
jmp 0x1001aa49
lea ecx, [esp + 0x1d8]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001aa40
sub ecx, edx
push ecx
lea eax, [esp + 0x1dc]
push eax
lea ecx, [esp + 0x80]
call fcn.10001a10
lea eax, [esp + 0x78]
push eax
call sym.KwLib.dll_int___cdecl_KwLib::Dir::IsExistFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
test eax, eax
jne 0x1001ab4b
lea eax, [esp + 0x48]
push 0x64
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::Dir::GetKwPath_enum_KwLib::Dir::Path_Type_
push str.tempUnCompress
mov edx, eax
mov byte [esp + 0x3f0], 1
lea ecx, [esp + 0x9c]
call fcn.10004d50
add esp, 0xc
lea ecx, [esp + 0x78]
push eax
call fcn.10001ec0
lea ecx, [esp + 0x90]
call fcn.10001850
lea ecx, [esp + 0x48]
mov byte [esp + 0x3e4], 0
call fcn.10001850
jmp 0x1001ab4b
lea eax, [esp + 0x48]
push 0x64
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::Dir::GetKwPath_enum_KwLib::Dir::Path_Type_
push str.tempUnCompress
mov edx, eax
mov byte [esp + 0x3f0], 2
lea ecx, [esp + 0x38]
call fcn.10004d50
add esp, 0xc
lea ecx, [esp + 0x78]
push eax
call fcn.10001ec0
cmp dword [esp + 0x40], 0x10
jb 0x1001ab0a
push dword [esp + 0x2c]
call edi
add esp, 4
mov byte [esp + 0x3e4], 0
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x1001ab4b
push dword [esp + 0x48]
call edi
add esp, 4
jmp 0x1001ab4b
lea ecx, [esp + 0x78]
cmp ecx, eax
je 0x1001ab4b
push 0xffffffffffffffff
push 0
push eax
call fcn.100018e0
xor edx, edx
mov byte [esp + 0xf], 1
mov dword [esp + 0xa8], edx
mov byte [esp + 0xac], dl
mov dword [esp + 0x1d0], edx
cmp dword [esi], 1
mov dword [esp + 0x10], edx
je 0x1001ab7f
mov dword [0x1006ee0c], 0x80000
jmp 0x1001ae9a
mov ebx, dword [esi + 4]
mov ecx, dword [ebx]
cmp dword [ecx + 4], 0xffffffff
jg 0x1001ab94
mov eax, 0x10000
jmp 0x1001ac23
cmp dword [ebx + 4], 0xffffffff
je 0x1001ab9f
call fcn.1003d4c0
mov eax, dword [ebx]
mov dword [ebx + 4], 0xffffffff
mov edx, dword [eax + 4]
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xa8], edx
mov byte [esp + 0xac], 0
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 0
mov dword [esp + 0x1c4], 0
mov dword [esp + 0x1c8], 0
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1d0], 0
xor ebx, ebx
mov dword [0x1006ee0c], eax
mov dword [esp + 0x44], ebx
test edx, edx
jle 0x1001ae9a
jmp 0x1001ac40
mov dword [esp + 0xa8], 0
mov byte [esp + 0xac], 0
mov dword [esp + 0x1d0], 0
cmp dword [esi], 1
je 0x1001ac6f
mov dword [0x1006ee0c], 0x80000
jmp 0x1001ac85
mov ecx, dword [esi + 4]
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.1003cc70
mov dword [0x1006ee0c], eax
push 0x10059c78
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x4c]
call fcn.100074c0
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x3e4], 3
push ecx
mov edx, eax
lea ecx, [esp + 0x64]
call fcn.10004d50
add esp, 4
mov byte [esp + 0x3e4], 5
cmp dword [esp + 0x5c], 0x10
jb 0x1001acd0
push dword [esp + 0x48]
call edi
add esp, 4
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x60]
mov ebx, dword [esp + 0x60]
cmp edx, 0x10
mov dword [esp + 0x5c], 0xf
cmovae eax, ebx
mov dword [esp + 0x58], 0
cmp dword [esi], 1
mov byte [esp + 0x48], 0
jne 0x1001ae64
mov ebx, dword [esp + 0x44]
sub esp, 8
mov ecx, dword [esi + 4]
push eax
push ebx
call fcn.1003c8b0
mov dword [0x1006ee0c], eax
test eax, eax
jne 0x1001ae5a
cmp byte [ebp + 0x14], al
je 0x1001adc4
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x90]
push 0x10059c78
call fcn.100074c0
add esp, 4
lea ecx, [esp + 0xac]
mov byte [esp + 0x3e4], 6
push ecx
mov edx, eax
lea ecx, [esp + 0x30]
call fcn.10004d50
add esp, 4
mov byte [esp + 0x3e4], 7
cmp dword [eax + 0x14], 0x10
jb 0x1001ad6c
mov eax, dword [eax]
cmp dword [esp + 0x74], 0x10
lea ecx, [esp + 0x60]
mov edx, eax
cmovae ecx, dword [esp + 0x60]
call fcn.1001b3d0
cmp dword [esp + 0x40], 0x10
jb 0x1001ad91
push dword [esp + 0x2c]
call edi
add esp, 4
mov byte [esp + 0x3e4], 5
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x1001adc4
push dword [esp + 0x90]
call edi
add esp, 4
cmp byte [esp + 0xac], 0
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jne 0x1001ade7
xor ecx, ecx
jmp 0x1001adfa
lea ecx, [esp + 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001adf1
sub ecx, edx
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x34]
call fcn.10001a10
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x3e8], 8
call fcn.10003f80
cmp dword [esp + 0x40], 0x10
jb 0x1001ae31
push dword [esp + 0x2c]
call edi
add esp, 4
mov byte [esp + 0x3e4], 0
cmp dword [esp + 0x74], 0x10
jb 0x1001ae49
push dword [esp + 0x60]
call edi
add esp, 4
inc ebx
mov dword [esp + 0x44], ebx
cmp ebx, dword [esp + 0x10]
jl 0x1001ac40
jmp 0x1001ae9a
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x60]
jmp 0x1001ae6e
mov dword [0x1006ee0c], 0x80000
cmp edx, 0x10
lea ecx, [esp + 0x60]
cmovae ecx, ebx
call fcn.10006a70
mov byte [esp + 0x3e4], 0
cmp dword [esp + 0x74], 0x10
mov byte [esp + 0xf], 0
jb 0x1001ae9a
push dword [esp + 0x60]
call edi
add esp, 4
mov ecx, dword [esi]
cmp ecx, 1
sete al
test al, al
je 0x1001aed4
cmp ecx, 1
je 0x1001aeb7
mov dword [0x1006ee0c], 0x80000
jmp 0x1001af06
mov ebx, dword [esi + 4]
mov ecx, ebx
call fcn.1003c850
mov dword [0x1006ee0c], eax
test ebx, ebx
je 0x1001af00
push ecx
mov ecx, ebx
call fcn.1000d2f0
jmp 0x1001af00
cmp ecx, 2
je 0x1001aee5
mov dword [0x1006ef90], 0x80000
jmp 0x1001af06
mov ebx, dword [esi + 4]
mov ecx, ebx
call fcn.10041f90
mov dword [0x1006ef90], eax
test ebx, ebx
je 0x1001af00
push ecx
mov ecx, ebx
call fcn.1000d340
push esi
call edi
add esp, 4
mov bl, byte [esp + 0xf]
test bl, bl
je 0x1001b0cd
cmp byte [ebp + 0x14], 0
je 0x1001b0cd
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov byte [esp + 0x3e4], 9
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1001b0c9
xor esi, esi
mov dword [esp + 0x10], esi
push 0x10059c78
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x94]
call fcn.100074c0
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, eax
mov byte [esp + 0x3e4], 0xa
mov ecx, dword [ecx]
add ecx, esi
push ecx
lea ecx, [esp + 0x4c]
call fcn.100075a0
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
cmp eax, esi
je 0x1001b00e
cmp dword [esp + 0x28], 0x10
jb 0x1001afb0
push dword [esp + 0x14]
call edi
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
cmp dword [esi + 0x14], 0x10
jae 0x1001afe3
mov eax, dword [esi + 0x10]
inc eax
je 0x1001afef
push eax
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x1001afef
mov eax, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x28], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x5c], 0x10
jb 0x1001b01e
push dword [esp + 0x48]
call edi
add esp, 4
mov byte [esp + 0x3e4], 9
cmp dword [esp + 0xa4], 0x10
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x1001b051
push dword [esp + 0x90]
call edi
add esp, 4
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x14]
cmovae ecx, dword [esp + 0x14]
call fcn.100078a0
lea ecx, [esp + 0x14]
test al, al
je 0x1001b07d
cmp dword [esp + 0x28], 0x10
cmovae ecx, dword [esp + 0x14]
call fcn.100068a0
jmp 0x1001b08c
cmp dword [esp + 0x28], 0x10
cmovae ecx, dword [esp + 0x14]
call fcn.10006a70
mov eax, dword [ebp + 0x10]
inc ebx
mov esi, dword [esp + 0x10]
add esi, 0x18
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x1001af60
cmp dword [esp + 0x28], 0x10
jb 0x1001b0c9
push dword [esp + 0x14]
call edi
add esp, 4
mov bl, byte [esp + 0xf]
cmp dword [esp + 0x8c], 0x10
jb 0x1001b0e0
push dword [esp + 0x78]
call edi
add esp, 4
mov ecx, dword [esp + 0x3dc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret