Function at 0x45cc80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], 0xf
lea ebx, [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x54], eax
mov byte [ebx], al
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x45ccd7
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x45ccc0
add eax, 0xffffffff
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x64]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x34], edx
cmp esi, 0x10
cmovb edi, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
cmp ecx, edi
jae 0x45d75a
xor eax, eax
test eax, eax
je 0x45cd49
mov eax, dword [ebp - 0x50]
lea ebx, [ebp - 0x64]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x78], edx
cmp eax, 0x10
cmovae ebx, dword [ebp - 0x64]
sub ecx, ebx
cmp ecx, dword [ebp - 0x54]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], ecx
jbe 0x45cd23
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xran_void_]
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x2c]
cmp eax, edx
cmovb edx, eax
mov dword [ebp - 0x28], edx
jmp 0x45d4cd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
cmp eax, 0xfffffffe
jbe 0x45cd5a
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xlen_void_]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x2c]
jb 0x45d65d
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x45d644
mov eax, dword [ebp - 0x3c]
test eax, eax
ja 0x45d5e7
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x50]
lea esi, [ebp - 0x64]
cmp eax, 0x10
cmovae esi, dword [ebp - 0x64]
test esi, esi
je 0x45cdb9
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x64]
cmp edx, esi
ja 0x45cdb9
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x54]
cmp esi, edx
jbe 0x45cdbf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x50]
lea ebx, [ebp - 0x64]
cmp eax, 0x10
cmovae ebx, dword [ebp - 0x64]
add ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x45cdf8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x64]
cmp edx, ebx
ja 0x45cdf8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x54]
cmp ebx, edx
jbe 0x45cdfe
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov byte [ebp - 0x14], 0x2f
cmp esi, ebx
mov byte [ebp - 0x18], 0x5c
je 0x45ce1e
mov al, byte [esi]
cmp al, byte [ebp - 0x14]
jne 0x45ce17
movzx eax, byte [ebp - 0x18]
mov byte [esi], al
add esi, 1
cmp esi, ebx
jne 0x45ce0a
mov eax, dword [ebp - 0x54]
cmp eax, 2
jbe 0x45cff5
mov eax, dword [ebp - 0x54]
cmp eax, 1
jae 0x45ce38
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x64]
cmp eax, 0x10
jae 0x45ce48
mov ecx, edx
movsx ebx, byte [ecx + 1]
cmp ebx, 0x3a
je 0x45cff5
mov eax, dword [ebp - 0x54]
test eax, eax
jae 0x45ce62
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x64]
cmp eax, 0x10
jae 0x45ce72
mov ecx, edx
movsx ebx, byte [ecx]
cmp ebx, 0x5c
je 0x45cff5
lea edi, [ebp - 0x220]
xor eax, eax
mov ecx, 0x104
and eax, 0xffff
mov ah, al
mov esi, ecx
mov edx, eax
shl eax, 0x10
shr ecx, 2
or eax, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x45cff5
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xec]
call fcn.00448af8
mov dword [ebp - 4], 9
push 0x4b0708
lea ecx, [ebp - 0xd0]
call fcn.00448af8
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0xb4]
lea edx, [ebp - 0xec]
lea eax, [ebp - 0xd0]
push eax
push edx
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x98]
lea edx, [ebp - 0xb4]
lea eax, [ebp - 0x68]
push eax
push edx
push ecx
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x68]
call fcn.00441808
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jae 0x45d083
mov dword [ebp - 0x80], 0xf
xor eax, eax
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x94], al
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x9c]
cmp eax, 0x10
jae 0x45d072
mov dword [ebp - 0x9c], 0xf
xor eax, eax
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0xb0], al
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0xb8]
cmp eax, 0x10
jae 0x45d061
mov dword [ebp - 0xb8], 0xf
xor eax, eax
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xcc], al
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0xd4]
cmp eax, 0x10
jae 0x45d050
mov dword [ebp - 0xd4], 0xf
xor eax, eax
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xe8], al
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x64]
xor ecx, ecx
push ecx
push 0x8000100
push dword [ebp - 0x54]
push edx
push ecx
call fcn.004a4000
add esp, 0x14
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jae 0x45d094
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x50], 0xf
xor edx, edx
mov dword [ebp - 0x54], edx
mov eax, ebx
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x64], dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xe8]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45cfdd
push dword [ebp - 0xcc]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45cfb3
push dword [ebp - 0xb0]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45cf85
push dword [ebp - 0x94]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45cf5a
push dword [ebp - 0x64]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45d028
mov eax, dword [ebp - 0x104]
test eax, eax
ja 0x45d361
mov eax, dword [ebp - 0x10c]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jae 0x45d34d
mov eax, dword [ebp - 0x10c]
mov dword [eax + 0x18], 0xf
mov edx, dword [ebp - 0x10c]
mov dword [edx + 0x14], 0
mov ecx, dword [ebp - 0x10c]
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x45d2e3
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
jmp 0x45d2ec
mov eax, dword [ebp - 0x10c]
add eax, 4
mov ecx, dword [ebp - 0xf8]
mov byte [eax], 0
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0xf4]
mov dword [edx + 4], eax
mov ebx, dword [ebp - 0x10c]
mov dword [ebx + 0x18], ecx
mov edi, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x104]
mov dword [edi + 0x14], esi
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x45d335
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
jmp 0x45d33e
mov eax, dword [ebp - 0x10c]
add eax, 4
mov edx, dword [ebp - 0x104]
mov byte [eax + edx], 0
jmp 0x45cd71
mov eax, dword [ebp - 0x10c]
push dword [eax + 4]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x45d2b0
mov eax, dword [ebp - 0x10c]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x45d37a
mov eax, dword [ebp - 0x10c]
mov eax, dword [eax + 4]
jmp 0x45d383
mov eax, dword [ebp - 0x10c]
add eax, 4
push dword [ebp - 0x104]
mov edx, dword [ebp - 0xf8]
add edx, 1
push eax
push edx
push dword [ebp - 0xf4]
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
jmp 0x45d29e
mov esi, dword [ebp - 0x70]
add esi, dword [ebp - 0x28]
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 edx, dword [ebp - 0x54]
mov ebx, dword [eax]
cmp edx, esi
jae 0x45d4ea
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xran_void_]
mov edx, dword [ebp - 0x54]
sub edx, esi
cmp edx, ebx
cmovb ebx, edx
test ebx, ebx
ja 0x45d55d
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x54]
test eax, eax
jae 0x45d508
call dword [sym.imp.MSVCP80.dll_public:_static_void___cdecl_std::_String_base::_Xran_void_]
mov eax, dword [ebp - 0x54]
cmp eax, ebx
cmovb ebx, eax
test ebx, ebx
jbe 0x45cd7c
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x45d525
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x64]
jmp 0x45d52b
lea esi, [ebp - 0x64]
lea edx, [ebp - 0x64]
add edx, ebx
sub eax, ebx
push eax
push edx
push ecx
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
sub edx, ebx
mov dword [ebp - 0x54], edx
cmp eax, 0x10
jb 0x45d551
mov eax, dword [ebp - 0x64]
jmp 0x45d554
lea eax, [ebp - 0x64]
mov byte [eax + edx], 0
jmp 0x45cd7c
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x45d56d
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
jmp 0x45d573
lea edi, [ebp - 0x64]
lea eax, [ebp - 0x64]
add edi, esi
sub ecx, esi
add esi, ebx
add esi, eax
sub edx, ebx
push edx
push esi
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
sub edx, ebx
mov dword [ebp - 0x54], edx
cmp eax, 0x10
jb 0x45d59f
mov eax, dword [ebp - 0x64]
jmp 0x45d5a2
lea eax, [ebp - 0x64]
mov byte [eax + edx], 0
jmp 0x45d4f5
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x18]
cmp edx, 0x10
jb 0x45d5fa
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 4]
jmp 0x45d600
mov edx, dword [ebp - 0x34]
add edx, 4
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
push dword [eax + 0x18]
push edx
call dword [sym.imp.MSVCR80.dll_memcpy_s]
add esp, 0x10
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ecx + 0x18]
cmp ebx, 0x10
jb 0x45d632
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
jmp 0x45d638
mov eax, dword [ebp - 0x34]
add eax, 4
mov edx, dword [ebp - 0x2c]
mov byte [eax + edx], 0
jmp 0x45cd7c
mov esi, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x54], eax
cmp esi, 0x10
cmovae edx, dword [ebp - 0x64]
mov byte [edx], al
jmp 0x45cd71
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], edx
or ecx, 0xf
cmp ecx, 0xfffffffe
mov dword [ebp - 0xf8], ecx
jbe 0x45d691
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xf8], eax
jmp 0x45d6ab
mov ecx, dword [ebp - 0x50]
mov eax, 0xaaaaaaab
mul dword [ebp - 0xf8]
shr ecx, 1
shr edx, 1
cmp edx, ecx
jb 0x45d732
mov dword [ebp - 0xf4], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0xf8]
add ebx, 1
jne 0x45d6cb
xor ebx, ebx
jmp 0x45d719
xor edx, edx
mov eax, 0xffffffff
div ebx
cmp eax, 1
jae 0x45d719
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x230], ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCR80.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4b4118
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x250]
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 - 0xf4], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x45d290
mov eax, dword [ebp - 0x50]
mov edx, eax
shr edx, 1
neg edx
add edx, 0xfffffffe
cmp eax, edx
ja 0x45d6ab
mov edx, dword [ebp - 0x50]
mov eax, edx
shr eax, 1
add edx, eax
mov dword [ebp - 0xf8], edx
jmp 0x45d6ab
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x64]
cmp eax, 0x10
cmovae edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x54]
cmp edx, ecx
jbe 0x45ccf7
mov eax, 1
jmp 0x45ccf9