Function at 0x10001da0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x464
mov eax, dword [0x10029830]
xor eax, esp
mov dword [esp + 0x460], eax
mov eax, dword [esp + 0x46c]
push ebx
mov ebx, dword [esp + 0x474]
push ebp
mov ebp, dword [esp + 0x47c]
push esi
push edi
mov edi, dword [esp + 0x478]
push 0x400
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x74]
push 0
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x4c], 0
call fcn.10006290
mov eax, dword [0x1002a3cc]
add esp, 0xc
cmp eax, 0x10
jge 0x10001e13
mov esi, dword [eax*4 + 0x10025008]
jmp 0x10001e18
mov esi, str.________________.
mov dword [esp + 0x28], esi
test edi, edi
je 0x100021da
inc eax
mov dword [0x1002a3cc], eax
lea eax, [esp + 0x70]
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x70]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001e42
sub ecx, edx
je 0x100021da
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0xb
lea eax, [esp + 0x74]
push str.cpptestscan
push eax
call fcn.1000ca0a
add esp, 0xc
test eax, eax
je 0x100021da
push edi
lea eax, [esp + 0x74]
push eax
push esi
push str.lib_patching____s_s_0x_x
call fcn.100012e0
mov eax, dword [edi + 0x3c]
add esp, 0x10
cmp dword [eax + edi], 0x4550
je 0x10001ea2
mov eax, 0x800700c1
jmp 0x100021dc
mov eax, dword [eax + edi + 0x80]
add eax, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], eax
cmp dword [eax + 0x10], 0
je 0x10002186
mov ecx, eax
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x1c], 0
add esi, edi
je 0x10002160
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
jne 0x10002160
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001f00
sub ecx, edx
je 0x10002160
push ebp
push esi
call fcn.1000874b
add esp, 8
test eax, eax
je 0x10001f83
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x1001c640
push esi
mov dword [esp + 0x2c], eax
call fcn.1000874b
add esp, 8
test eax, eax
je 0x10002160
push str.cpptesttrace64.dll
push esi
call fcn.1000874b
add esp, 8
test eax, eax
je 0x10002160
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
call fcn.10004b20
add esp, 0xc
test eax, eax
jne 0x10002160
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call fcn.10001cc0
add esp, 8
push ebp
push esi
call fcn.1000874b
add esp, 8
test eax, eax
je 0x1000202b
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x10002160
mov dword [esp + 0x44], 0x1001c380
xor esi, esi
mov dword [esp + 0x48], 0x1001c370
mov eax, 0x1001c380
mov dword [esp + 0x4c], 0x1001c6d0
mov dword [esp + 0x50], 0x1001c6dc
mov dword [esp + 0x54], 0x1001c708
mov dword [esp + 0x58], 0x1001c734
mov dword [esp + 0x5c], str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_3.DLL
mov dword [esp + 0x60], 0x1001c78c
mov dword [esp + 0x64], 0x1001c7b8
mov dword [esp + 0x68], 0x1001c7e4
mov dword [esp + 0x6c], 0x1001c80c
push eax
push ebx
push dword [esp + 0x20]
push edi
call fcn.10001da0
add esp, 0x10
test eax, eax
jne 0x10002160
mov eax, dword [esp + esi*4 + 0x48]
inc esi
cmp byte [eax], 0
jne 0x10002005
jmp 0x10002160
mov esi, dword [esp + 0x10]
cmp dword [esi], 0
je 0x10002160
cmp dword [ebx + 0x60], 0
mov dword [esp + 0x1c], 0
je 0x10002160
nop word [eax + eax]
lea eax, [ebx + 0x20]
push ebp
push eax
call fcn.1000874b
add esp, 8
test eax, eax
jne 0x10002142
mov ebp, dword [esi]
mov esi, dword [esi + 0x10]
add ebp, edi
add esi, edi
mov eax, dword [ebp]
test eax, eax
je 0x1000213a
js 0x10002129
add eax, 2
add eax, edi
push ebx
push eax
call fcn.1000874b
add esp, 8
test eax, eax
jne 0x10002129
mov eax, dword [esi]
mov ecx, dword [ebx + 0x60]
cmp eax, ecx
je 0x10002129
push ecx
push eax
push esi
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x3c]
push str.symbol_patching__s_s__s___08X___08X_____08X
call fcn.100012e0
mov edi, dword [ebx + 0x60]
lea eax, [esp + 0x60]
add esp, 0x1c
mov dword [esp + 0x38], 0
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 0x58]
push eax
push 0x40
push dword [esp + 0x58]
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000210b
lea eax, [esp + 0x38]
mov dword [esi], edi
push eax
push dword [esp + 0x5c]
push dword [esp + 0x58]
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002125
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1000211f
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x100021dc
mov edi, dword [esp + 0x14]
mov eax, dword [ebp + 4]
add ebp, 4
add esi, 4
test eax, eax
jne 0x10002079
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
imul ebx, eax, 0x64
mov dword [esp + 0x1c], eax
add ebx, dword [esp + 0x2c]
cmp dword [ebx + 0x60], 0
jne 0x10002050
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
inc eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 0x10], 0
lea ecx, [ecx + eax*4]
mov dword [esp + 0x10], ecx
jne 0x10001ed0
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
push eax
push ebx
call fcn.10004b20
add esp, 0xc
test eax, eax
jne 0x100021d4
push 4
call fcn.1000896f
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x100021c4
push str.ERROR:_Memory_allocation_failed__I1_
call fcn.100012e0
add esp, 4
jmp 0x100021d4
mov eax, dword [esp + 0x34]
push ecx
push ebx
mov dword [ecx], eax
call fcn.10004ab0
add esp, 8
dec dword [0x1002a3cc]
xor eax, eax
mov ecx, dword [esp + 0x470]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100050a1
add esp, 0x464
ret