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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45e15e
push eax
mov eax, 0x4730
mov dword fs:[0], esp
call fcn.0043fdd0
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.00408520
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 0x4717f8
push 0x476804
call esi
lea edx, [esp + 0x1d4]
push edx
push ebx
push 0x4717f4
push 0x476804
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 0x4717f4
lea ecx, [esp + 0x124]
push 0x46f510
push ecx
call fcn.00406530
mov eax, dword [0x476a5c]
add esp, 0x10
cmp eax, ebx
jne 0x413b9b
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 0x4717b4
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 0x41428b
mov eax, dword [0x476a5c]
cmp eax, ebx
jne 0x413bf8
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 0x471774
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 0x41426d
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 0x413c9f
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 0x413d54
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 0x413d95
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 0x413d95
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 0x413dac
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 0x4141d9
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 0x413de4
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 0x414189
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.00407c80
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x74]
push edx
push eax
push 0x471768
push esi
lea ecx, [esp + 0x5f4]
call fcn.00407c90
mov edi, eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x14], edi
call fcn.0042d140
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x474c], 5
call fcn.00432390
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 0x413ed4
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.0042d1e0
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.004365d0
push 0x47175c
lea ecx, [esp + 0x48]
mov byte [esp + 0x474c], 8
call fcn.004342b0
mov ecx, eax
call fcn.00433190
cmp eax, edi
ja 0x4140aa
push 0x471750
lea ecx, [esp + 0x48]
call fcn.004342b0
mov ecx, eax
call fcn.00433190
cmp edi, eax
ja 0x4140aa
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
add edx, 0x260
push edx
push 0x46f514
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 0x46f514
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 0x413fae
mov edi, eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x44]
push edx
push 0x471744
call fcn.004342b0
mov ecx, eax
call fcn.00432bb0
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x413fd4
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 0x414006
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x413ffd
cmp al, 0xff
je 0x413ffd
dec al
mov byte [ecx], al
jmp 0x414006
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 0x414037
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41402e
cmp al, 0xff
je 0x41402e
dec al
mov byte [ecx], al
jmp 0x414037
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 0x414070
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x414067
cmp al, 0xff
je 0x414067
dec al
mov byte [ecx], al
jmp 0x414070
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 0x4140aa
push 0x471738
lea ecx, [esp + 0x48]
call fcn.004342b0
mov ecx, eax
call fcn.00433190
push eax
push ebx
push 0x41d0e0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [0x476bb0], eax
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x4140c4
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x108], 0x464954
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.004365a0
lea ecx, [esp + 0x44]
mov byte [esp + 0x4748], 5
call fcn.00432920
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 0x414161
lea ecx, [esp + 0x170]
call fcn.00416dd0
cmp dword [esp + 0x19c], ebx
jne 0x41414c
mov eax, dword [esp + 0x16c]
mov byte [esp + 0x4748], 4
cmp eax, ebx
je 0x414189
lea ecx, [esp + 0x140]
call fcn.00416d40
cmp dword [esp + 0x16c], ebx
jne 0x414174
mov eax, dword [esp + 0xd0]
cmp eax, ebx
je 0x4141bd
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x4141bd
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 0x4141d9
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 0x414261
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x414258
cmp al, 0xff
je 0x414258
dec al
mov byte [ecx], al
jmp 0x414261
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 0x4142a4
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