Function at 0x413800
Capabilities:
Create thread
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45fd3e
push eax
mov eax, 0x4730
mov dword fs:[0], esp
call fcn.0043d910
push ebx
mov dword [esp + 0x10], ecx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xccc]
mov dword [esp + 0x10], ebx
call fcn.004084e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d9]
mov byte [esp + 0x2d8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3dd]
mov byte [esp + 0x3dc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d5]
mov byte [esp + 0x1d4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2d8]
mov dword [esp + 0x4744], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x3dc]
push ecx
push ebx
push 0x4737a8
push 0x478924
call esi
lea edx, [esp + 0x1d4]
push edx
push ebx
push 0x4737a4
push 0x478924
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x3dc]
push eax
call esi
lea ecx, [esp + 0x1d4]
push ecx
call esi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x11c]
lea edx, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x4e0]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x474c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push 0x4737a4
lea ecx, [esp + 0x124]
push 0x471510
push ecx
call fcn.00406580
mov eax, dword [0x478b7c]
add esp, 0x10
cmp eax, ebx
jne 0x41395b
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 esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x11c]
push edx
push eax
lea eax, [esp + 0x4e8]
push str.http:__config.153624.com_Public_conf_open_1__s__s_10.jpg
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x3dc]
lea edx, [esp + 0x2d8]
lea eax, [esp + 0x4e0]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0xcdc]
call fcn.00409b00
test eax, eax
je 0x41404b
mov eax, dword [0x478b7c]
cmp eax, ebx
jne 0x4139b8
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]
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x4e0]
push ecx
push eax
push str.http:__config.153624.com_Public_conf_open_1__s__s_11.jpg
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x1d4]
lea ecx, [esp + 0x2d8]
lea edx, [esp + 0x4e0]
push 1
push eax
push ecx
push edx
lea ecx, [esp + 0xcdc]
call fcn.00409b00
test eax, eax
je 0x41402d
mov al, byte [esp + 0xf]
push ebp
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], 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 edi, [esp + 0x2dc]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
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 0x413a5f
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x2dc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea edi, [esp + 0x1d8]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x4748], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1d8]
push ecx
push eax
lea ecx, [esp + 0x38]
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_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x14], 1
mov dword [esp + 0xd4], edx
push ebx
lea eax, [esp + 0x84]
push ebx
push eax
lea ecx, [esp + 0x84]
mov byte [esp + 0x4754], 2
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push ebx
lea ecx, [esp + 0x84]
mov dword [esp + 0x474c], 3
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov ecx, dword [esp + 0x78]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x78], eax
mov eax, dword [esp + 0x34]
mov byte [esp + 0x4748], 4
cmp eax, ebx
jne 0x413b14
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]
cmp dword [esp + 0xd0], ebx
jne 0x413b55
push 0x21
push eax
call dword [sym.imp.MSVCP60.dll_struct__iobuf____cdecl_std::__Fiopen_char_const___int_]
add esp, 8
cmp eax, ebx
je 0x413b55
push 1
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Initcvt_void_]
lea ecx, [esp + 0x80]
test ecx, ecx
jne 0x413b6c
mov edx, dword [esp + 0x78]
push ebx
push 2
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x80]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [sym.imp.MSVCP60.dll_public:_bool___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::is_open_void_const], ebx
je 0x413f99
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + edx + 0x7c]
test cl, 6
lea eax, [esp + edx + 0x78]
jne 0x413ba4
mov ecx, dword [eax + 0x28]
push 1
push ebx
lea edx, [esp + 0x110]
mov eax, dword [ecx]
push 0x300
push edx
call dword [eax + 0x20]
lea eax, [esp + 0x18]
push 4
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
mov eax, dword [esp + 0x18]
cmp eax, 0x10000
jae 0x413f49
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
push ecx
push esi
lea ecx, [esp + 0x80]
mov dword [esp + 0x48], esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
lea ecx, [esp + 0x5e4]
call fcn.00407c40
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x74]
push edx
push eax
push str.KpRunLog
push esi
lea ecx, [esp + 0x5f4]
call fcn.00407c50
mov edi, eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x14], edi
call fcn.0042acb0
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x474c], 5
call fcn.0042fee0
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
mov byte [esp + 0x474c], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
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 0x413c94
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, ebp
push ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x44]
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x14c]
mov byte [esp + 0x4754], 7
call fcn.0042ad50
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x474c], 6
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 ebx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea ecx, [esp + 0x108]
mov edi, eax
call fcn.00434130
push str.upbegintime
lea ecx, [esp + 0x48]
mov byte [esp + 0x474c], 8
call fcn.00431e00
mov ecx, eax
call fcn.00430ce0
cmp eax, edi
ja 0x413e6a
push str.upendtime
lea ecx, [esp + 0x48]
call fcn.00431e00
mov ecx, eax
call fcn.00430ce0
cmp edi, eax
ja 0x413e6a
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
add edx, 0x260
push edx
push 0x471514
push eax
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__
push 0x471514
lea ecx, [esp + 0x74]
push eax
push ecx
mov byte [esp + 0x4760], 9
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x18
mov eax, dword [eax + 4]
mov edi, 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]
cmp eax, ebx
mov byte [esp + 0x4748], 0xa
je 0x413d6e
mov edi, eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x44]
push edx
push str.upuserid
call fcn.00431e00
mov ecx, eax
call fcn.00430700
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x413d94
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 edi
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, ebx
je 0x413dc6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x413dbd
cmp al, 0xff
je 0x413dbd
dec al
mov byte [ecx], al
jmp 0x413dc6
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x413df7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x413dee
cmp al, 0xff
je 0x413dee
dec al
mov byte [ecx], al
jmp 0x413df7
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], ebx
cmp eax, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x4748], 8
je 0x413e30
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x413e27
cmp al, 0xff
je 0x413e27
dec al
mov byte [ecx], al
jmp 0x413e30
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp edi, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
je 0x413e6a
push str.upmaxsize
lea ecx, [esp + 0x48]
call fcn.00431e00
mov ecx, eax
call fcn.00430ce0
push eax
push ebx
push 0x41c950
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [0x478cbc], eax
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x413e84
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x108], 0x46693c
push 1
lea ecx, [esp + 0x110]
mov byte [esp + 0x474c], 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_]
lea ecx, [esp + 0x108]
mov byte [esp + 0x4748], 6
call fcn.00434100
lea ecx, [esp + 0x44]
mov byte [esp + 0x4748], 5
call fcn.00430470
push 1
lea ecx, [esp + 0x1c8]
mov byte [esp + 0x474c], 0xe
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 + 0x1a4]
mov byte [esp + 0x474c], 0xd
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, dword [esp + 0x19c]
mov byte [esp + 0x4748], 0xc
cmp eax, ebx
je 0x413f21
lea ecx, [esp + 0x170]
call fcn.00416ae0
cmp dword [esp + 0x19c], ebx
jne 0x413f0c
mov eax, dword [esp + 0x16c]
mov byte [esp + 0x4748], 4
cmp eax, ebx
je 0x413f49
lea ecx, [esp + 0x140]
call fcn.00416a50
cmp dword [esp + 0x16c], ebx
jne 0x413f34
mov eax, dword [esp + 0xd0]
cmp eax, ebx
je 0x413f7d
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x413f7d
push 2
push ebx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea eax, [esp + 0x80]
test eax, eax
jne 0x413f99
mov ecx, dword [esp + 0x78]
push ebx
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x80]
lea ecx, [esp + edx + 0x7c]
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0xd4]
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x78], eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x4748], 0xf
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [esp + 0x78]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov byte [esp + 0x4748], 1
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x78], eax
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xd4], ecx
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov eax, dword [esp + 0x34]
pop ebp
cmp eax, ebx
je 0x414021
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x414018
cmp al, 0xff
je 0x414018
dec al
mov byte [ecx], al
jmp 0x414021
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0xccc]
mov dword [esp + 0x4744], 0xffffffff
call fcn.00408970
mov eax, 1
jmp 0x414064
lea ecx, [esp + 0xccc]
mov dword [esp + 0x4744], 0xffffffff
call fcn.00408970
xor eax, eax
mov ecx, dword [esp + 0x473c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x473c
ret 4