Function at 0x10026750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a98dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
je 0x10026784
cmp dword [ebp + 0xc], 0
je 0x10026784
cmp dword [ebp + 0x10], 0
jne 0x10026c49
mov byte [ebp - 0x85], 0x22
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x84], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
shl eax, 0
movsx ecx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, edx
mov byte [ebp - 0x83], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
shl eax, 1
movsx ecx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, edx
mov byte [ebp - 0x82], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 3
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x81], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
shl edx, 2
movsx eax, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, ecx
mov byte [ebp - 0x80], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 5
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x7f], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 6
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x7e], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 7
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x7d], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
shl edx, 3
movsx eax, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, ecx
mov byte [ebp - 0x7c], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 9
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x7b], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0xa
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x7a], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0xb
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x79], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0xc
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x78], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0xd
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x77], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0xe
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x76], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0xf
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x75], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
shl ecx, 4
movsx edx, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor edx, eax
mov byte [ebp - 0x74], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x11
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x73], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x12
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x72], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x13
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x71], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x14
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x70], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x15
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x6f], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x16
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x6e], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x17
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x6d], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x18
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x6c], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x19
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x6b], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x1a
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x6a], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x1b
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x69], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x1c
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x68], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x1d
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x67], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x1e
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x66], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x1f
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x65], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
shl ecx, 5
movsx edx, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor edx, eax
mov byte [ebp - 0x64], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x21
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x63], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x22
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x62], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x23
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x61], dl
movsx eax, byte [ebp - 0x85]
mov ecx, 1
imul edx, ecx, 0x24
movsx ecx, byte [edx + str._Detour::Apply__Parameters_are_invalid_]
xor ecx, eax
mov byte [ebp - 0x60], cl
movsx edx, byte [ebp - 0x85]
mov eax, 1
imul ecx, eax, 0x25
movsx eax, byte [ecx + str._Detour::Apply__Parameters_are_invalid_]
xor eax, edx
mov byte [ebp - 0x5f], al
movsx ecx, byte [ebp - 0x85]
mov edx, 1
imul eax, edx, 0x26
movsx edx, byte [eax + str._Detour::Apply__Parameters_are_invalid_]
xor edx, ecx
mov byte [ebp - 0x5e], dl
xor eax, eax
mov byte [ebp - 0x5d], al
mov dword [ebp - 0x18], 0
jmp 0x10026bca
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x27
jae 0x10026c10
lea edx, [ebp - 0x84]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
movsx ecx, byte [ebp - 0x85]
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
xor eax, ecx
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
jmp 0x10026bc1
lea edx, [ebp - 0x84]
mov dword [ebp - 0x38], edx
mov eax, 0x27
shl eax, 0
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov byte [ecx], 0
lea edx, [ebp - 0x84]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.100265e0
add esp, 4
xor al, al
jmp 0x10026d75
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x54]
push ecx
push 0x40
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.10027250
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.100272d0
lea ecx, [ebp - 0x48]
call fcn.10027210
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.10086630
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 8]
sub edx, dword [ecx]
sub edx, 5
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov byte [ecx], 0xe9
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 1], ecx
mov dword [ebp - 0x1c], 5
jmp 0x10026d27
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0xc]
jae 0x10026d40
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], 0x90
jmp 0x10026d1e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc