Function at 0x10007b90
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e7cf
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push esi
mov eax, dword [0x100525c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
cmp dword [0x100537bc], 1
jne 0x10007dd9
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xc4], 0x10040624
call fcn.100017b0
mov eax, dword [ebp - 0xc4]
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
add ecx, dword [eax + 4]
call fcn.10007fc0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea ecx, [ebp - 0xc0]
call fcn.10006030
push 0x40
push 0xa
push str.rez_UI_Scripts_1.s
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.100073d0
test eax, eax
jne 0x10007d0d
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x8c], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb8]
and eax, 0x17
mov dword [ebp + ecx - 0xb8], eax
mov ecx, dword [ebp + ecx - 0xb4]
and ecx, eax
je 0x10007d0d
test cl, 4
je 0x10007cce
mov esi, str.ios_base::badbit_set
jmp 0x10007cde
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xcc]
push 1
push eax
call fcn.100039e0
add esp, 8
lea ecx, [ebp - 0xe0]
push eax
push esi
call fcn.100020f0
push 0x1004d9f0
lea eax, [ebp - 0xe0]
push eax
call fcn.100184ad
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 4
push str._nFN_Scan:____File_not_found:
push eax
call fcn.10001100
push dword [0x1005370c]
lea eax, [ebp - 0xc4]
push eax
call fcn.10001100
add esp, 0x10
lea ecx, [ebp - 0xc0]
call fcn.100031c0
test eax, eax
jne 0x10007dce
mov eax, dword [ebp - 0xc4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0x8c], edx
cmovne eax, edx
or eax, dword [ebp + ecx - 0xb8]
and eax, 0x15
or eax, 2
mov dword [ebp + ecx - 0xb8], eax
mov ecx, dword [ebp + ecx - 0xb4]
and ecx, eax
je 0x10007dce
test cl, 4
je 0x10007d92
mov esi, str.ios_base::badbit_set
jmp 0x10007da2
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100039e0
add esp, 8
lea ecx, [ebp - 0xf4]
push eax
push esi
call fcn.100020f0
push 0x1004d9f0
lea eax, [ebp - 0xf4]
push eax
call fcn.100184ad
lea ecx, [ebp - 0xc4]
call fcn.100026a0
mov eax, dword [0x100537c0]
cmp eax, 1
je 0x10007e1a
cmp eax, 3
je 0x10007e1a
cmp eax, 4
je 0x10007e1a
push 0
cmp eax, 2
jne 0x10007e14
push 0
push 0
push 0x10007f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x10007f70
jmp 0x10007dfd