Function at 0x410290
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4238a2
push eax
mov eax, dword [0x42ca70]
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
push 0xa8c1ffff
push eax
call fcn.0040ea40
mov dl, byte [0x42ca4d]
mov ecx, dword [0x42ca70]
add dl, al
mov al, byte [0x42ca4f]
add esp, 8
xor esi, esi
xor ebx, ebx
inc ecx
test al, al
mov byte [0x42ca4d], dl
mov dword [0x42ca70], ecx
jne 0x4102f3
cmp word [0x42ca5c], si
jne 0x4102f3
xor eax, eax
jmp 0x4102f8
mov eax, 1
add word [0x42ca54], ax
push 0xca4fffff
push 0x2a81ffff
call fcn.0040e9f0
add esp, 8
mov word [0x42ca5e], ax
push esi
push esi
call dword [0x42d054]
mov edi, eax
cmp edi, esi
je 0x410546
movsx ecx, byte [0x42ca49]
push ebp
push 0xa8dfffff
push ecx
call fcn.0040e890
mov dl, byte [0x42ca5a]
mov ecx, dword [0x42ca84]
mov word [0x42ca56], ax
mov al, byte [0x42ca4d]
add dl, al
mov eax, dword [0x42ca6c]
push eax
push ecx
mov byte [0x42ca4b], dl
call fcn.0040e960
lea edx, [edi + 1]
mov word [0x42ca60], ax
push edx
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov ebp, eax
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
movsx eax, word [0x42ca58]
movsx edx, word [0x42ca64]
mov ecx, dword [0x42ca8c]
add eax, 0x3f280001
push ecx
push edx
mov dword [0x42ca74], eax
call fcn.0040e960
mov cl, byte [0x42ca49]
add esp, 8
add cl, al
mov al, byte [esp + 0x44]
mov byte [0x42ca49], cl
mov byte [esp + 0x10], al
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], esi
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x410414
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
xor esi, esi
mov byte [eax + ebx], 0
movsx ecx, word [0x42ca60]
mov edx, dword [0x42ca8c]
push ecx
push edx
call fcn.0040e9b0
mov cl, byte [0x42ca50]
mov bl, byte [0x42ca64]
mov dl, byte [0x42ca51]
add cl, al
mov al, byte [0x42ca54]
mov byte [0x42ca50], cl
mov ecx, dword [0x42ca7c]
or al, bl
add dl, al
sub ecx, 0x20440002
push ebp
mov byte [0x42ca51], dl
mov dword [0x42ca7c], ecx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00410590
add esp, 0x18
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x38], 1
mov edx, dword [ecx]
mov ecx, dword [esp + 0x40]
push edx
push esi
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x38], 0
cmp eax, esi
je 0x4104c4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4104bb
cmp al, 0xff
je 0x4104bb
dec al
mov byte [ecx], al
jmp 0x4104c4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
movsx ecx, byte [0x42ca4a]
mov eax, dword [0x42ca70]
mov ebp, dword [0x42ca84]
add ecx, eax
push eax
add ebp, ecx
push 0x7af3ffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [0x42ca84], ebp
call fcn.0040e9b0
mov cl, byte [0x42ca4c]
add esp, 8
add cl, al
mov ebx, 1
mov byte [0x42ca4c], cl
mov ecx, dword [esp + 0x14]
cmp ecx, esi
mov dword [esp + 0x38], 0xffffffff
pop ebp
je 0x41053a
mov al, byte [ecx - 1]
test al, al
je 0x410530
cmp al, 0xff
je 0x410530
dec al
mov byte [ecx - 1], al
jmp 0x41053a
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
movsx ax, byte [0x42ca48]
neg eax
movsx edx, ax
push edx
push 0xabfbffff
mov word [0x42ca64], ax
call fcn.0040e960
mov cl, byte [0x42ca48]
add esp, 8
add cl, al
mov eax, ebx
mov byte [0x42ca48], cl
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret