Function at 0x42d2ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42db30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d4
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x170]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [esi + 0x18], 0xf
xor eax, eax
lea ecx, [ebp - 0x170]
mov dword [esi + 0x14], eax
mov byte [edx + 4], al
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x42d35c
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x42d345
add eax, 0xffffffff
mov ebx, eax
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x18]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x170]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ebx
cmp esi, 0x10
jb 0x42d380
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
jmp 0x42d386
mov ecx, dword [ebp + 8]
add ecx, 4
lea edx, [ebp - 0x170]
cmp edx, ecx
jae 0x42dafc
xor edx, edx
test edx, edx
je 0x42d3f1
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, 0x10
jb 0x42d3ad
mov esi, dword [esi + 4]
jmp 0x42d3b0
add esi, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x170]
sub edx, esi
cmp edx, dword [ecx + 0x14]
mov dword [ebp - 0x4c], edx
jbe 0x42d3cf
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xran_void_]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [ebp - 0x4c]
cmp ebx, ecx
cmovb ecx, ebx
mov dword [ebp - 0x20], ecx
jmp 0x42d884
mov dword [ebp - 0x34], ebx
cmp ebx, 0xfffffffe
jbe 0x42d3ff
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xlen_void_]
mov edx, dword [ebp + 8]
cmp ebx, dword [edx + 0x18]
ja 0x42da0f
test ebx, ebx
je 0x42d9e7
mov eax, dword [ebp - 0x34]
test eax, eax
ja 0x42d98a
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x174]
test eax, eax
ja 0x42d727
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jae 0x42d713
mov eax, dword [ebp - 0x17c]
mov edx, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x17c]
mov dword [eax + 0x18], 0xf
mov dword [edx + 0x14], 0
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x42d6af
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
jmp 0x42d6b8
mov eax, dword [ebp - 0x17c]
add eax, 4
mov ecx, dword [ebp - 0x64]
mov byte [eax], 0
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x17c]
mov edi, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x174]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebx + 0x18], ecx
mov dword [edi + 0x14], esi
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x42d6fb
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
jmp 0x42d704
mov eax, dword [ebp - 0x17c]
add eax, 4
mov edx, dword [ebp - 0x174]
mov byte [eax + edx], 0
jmp 0x42d413
mov eax, dword [ebp - 0x17c]
push dword [eax + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x42d67c
mov eax, dword [ebp - 0x17c]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x42d740
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 4]
jmp 0x42d749
mov eax, dword [ebp - 0x17c]
add eax, 4
push dword [ebp - 0x174]
mov edx, dword [ebp - 0x64]
add edx, 1
push eax
push edx
push dword [ebp - 0x60]
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
jmp 0x42d66a
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x4c]
add edi, dword [ebp - 0x20]
mov edx, dword [ebx + 0x14]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, dword [eax]
cmp edx, edi
jae 0x42d8a4
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xran_void_]
mov edx, dword [ebx + 0x14]
sub edx, edi
cmp edx, esi
cmovb esi, edx
test esi, esi
ja 0x42d91a
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x14]
test eax, eax
jae 0x42d8c5
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xran_void_]
mov eax, dword [ebx + 0x14]
cmp eax, esi
cmovb esi, eax
test esi, esi
jbe 0x42d41e
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x10
jb 0x42d8e2
mov edi, dword [ebx + 4]
mov edx, dword [ebx + 4]
jmp 0x42d8e8
lea edi, [ebx + 4]
lea edx, [ebx + 4]
add edx, esi
sub eax, esi
push eax
push edx
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub edx, esi
mov dword [ebx + 0x14], edx
cmp eax, 0x10
jb 0x42d90e
mov ebx, dword [ebx + 4]
jmp 0x42d911
add ebx, 4
mov byte [ebx + edx], 0
jmp 0x42d41e
mov eax, dword [ebx + 0x18]
cmp eax, 0x10
jb 0x42d936
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x190], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x180], ecx
jmp 0x42d948
lea ecx, [ebx + 4]
mov dword [ebp - 0x190], ecx
lea ecx, [ebx + 4]
mov dword [ebp - 0x180], ecx
mov ecx, dword [ebp - 0x190]
add ecx, edi
sub eax, edi
add edi, esi
sub edx, esi
add edi, dword [ebp - 0x180]
push edx
push edi
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub edx, esi
mov dword [ebx + 0x14], edx
cmp eax, 0x10
jb 0x42d97e
mov ebx, dword [ebx + 4]
jmp 0x42d981
add ebx, 4
mov byte [ebx + edx], 0
jmp 0x42d8af
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x42d99d
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 4]
jmp 0x42d9a3
mov edx, dword [ebp - 0x2c]
add edx, 4
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x18]
push edx
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x42d9d5
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 4]
jmp 0x42d9db
mov eax, dword [ebp - 0x2c]
add eax, 4
mov edx, dword [ebp - 0x24]
mov byte [eax + edx], 0
jmp 0x42d41e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x14], 0
cmp edx, 0x10
jb 0x42da01
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
jmp 0x42da07
mov eax, dword [ebp + 8]
add eax, 4
mov byte [eax], 0
jmp 0x42d413
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x17c], edx
mov esi, ebx
or esi, 0xf
cmp esi, 0xfffffffe
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x64], esi
jbe 0x42da39
mov dword [ebp - 0x64], ebx
jmp 0x42da53
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x18]
mov eax, 0xaaaaaaab
mul dword [ebp - 0x64]
shr ebx, 1
shr edx, 1
cmp edx, ebx
jb 0x42dad1
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x64]
add ebx, 1
jne 0x42da6d
xor ebx, ebx
jmp 0x42dabb
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x42dabb
mov dword [ebp - 0x19c], 0
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1a0], ecx
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.MSVCR80.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4b4118
mov eax, dword [ebp - 0x1a0]
lea edx, [ebp - 0x1c0]
mov dword [eax], 0x4b7b94
push edx
call sub.MSVCR80.dll__CxxThrowException
push ebx
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x42d65c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov ecx, edx
shr ecx, 1
neg ecx
add ecx, 0xfffffffe
cmp edx, ecx
ja 0x42da53
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov edx, ecx
shr edx, 1
add ecx, edx
mov dword [ebp - 0x64], ecx
jmp 0x42da53
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, 0x10
jb 0x42db0f
mov esi, dword [esi + 4]
jmp 0x42db12
add esi, 4
mov edx, dword [ebp + 8]
add esi, dword [edx + 0x14]
lea ecx, [ebp - 0x170]
cmp esi, ecx
jbe 0x42d394
mov edx, 1
jmp 0x42d396