Function at 0x10008740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002387a
mov eax, dword fs:[0]
push eax
sub esp, 0x180
push esi
push edi
mov eax, dword [0x10031340]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
sub dword [ebp + 0xc], 1
jne 0x100089bd
call fcn.10005cc0
mov eax, dword [0x10032980]
cmp eax, dword [0x10032984]
jne 0x100089bd
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xc0], 0x1002561c
call fcn.10002de0
mov eax, dword [ebp - 0xc0]
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
add ecx, dword [eax + 4]
lea eax, [ebp - 0xbc]
push eax
call fcn.10007250
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.10002d40
push 0x40
push 0x22
push str.SavedReplacements.txt
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call fcn.10007690
test eax, eax
jne 0x10008886
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x88], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb4]
and eax, 0x17
mov dword [ebp + ecx - 0xb4], eax
mov ecx, dword [ebp + ecx - 0xb0]
and ecx, eax
jne 0x100089d5
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 4
push 0x1002562c
push eax
call fcn.10001b90
add esp, 8
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x18c]
push 1
push eax
call fcn.10003000
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.10004bf0
mov esi, dword [str.This_file_only_does_anything_when_the__Replacer__extension_is_used._nReplacement_commands_must_be_formatted_like_this:_nORIGoriginal_textBECOMESreplacement_textEND_nAll_text_in_this_file_outside_of_a_replacement_command_is_ignored._nA_caret____acts_as_a_wildcard_that_matches_any_other_single_character._nWhitespace_in_original_text_is_ignored__but_replacement_text_can_contain_spaces__newlines__etc._nThis_file_must_be_encoded_in_Unicode__UTF_16_Little_Endian_.]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100088d0
sub ecx, edx
sar ecx, 1
lea edi, [esi + ecx*2]
cmp esi, edi
je 0x1000891f
movzx ecx, word [esi]
mov eax, ecx
mov dword [ebp + 0xc], eax
cmp ecx, 0xa
jne 0x100088ff
mov eax, 0x10025630
mov ecx, 4
jmp 0x10008907
lea eax, [ebp + 0xc]
mov ecx, 2
push ecx
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.10002470
add esi, 2
add esp, 0xc
cmp esi, edi
jne 0x100088e6
push 1
call fcn.1001f187
add esp, 4
push 0
push 0
push eax
push 0x10001a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x190], eax
lea ecx, [ebp - 0x188]
call fcn.100042d0
mov eax, dword [ebp - 0x18c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x190], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100095b8
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
test cl, 4
je 0x100089e1
mov esi, str.ios_base::badbit_set
jmp 0x100089f1
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xc8]
push 1
push eax
call fcn.10007470
add esp, 8
lea ecx, [ebp - 0xdc]
push eax
push esi
call fcn.10003be0
push 0x1002e150
lea eax, [ebp - 0xdc]
push eax
call sub.msvcrt.dll__CxxThrowException
int3