Function at 0x10009610
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004bb78
push 0x1001bd80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffa5c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x5ac], ecx
mov eax, dword [ebp - 0x5ac]
mov dword [eax], vtable.CCodeHook.0
mov ecx, dword [ebp - 0x5ac]
mov byte [ecx + 0x3f], 1
mov edx, dword [ebp - 0x5ac]
movzx eax, byte [edx + 0x3d]
test eax, eax
je 0x10009e47
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x5ac]
mov eax, dword [edx + 0x44]
push eax
push 0x10038bf8
push 0x10038be0
call fcn.10003e20
add esp, 0x10
lea ecx, [ebp - 0x128]
push ecx
call fcn.10003780
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x100096c5
push 0xffffffffffffffff
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [ecx + 0x44]
push edx
push 0x10038bf8
push str.e4801
call fcn.10003e20
add esp, 0x10
mov eax, dword [ebp - 0x5ac]
cmp dword [eax + 0x14], 0
je 0x10009705
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x5b0], edx
jmp 0x10009719
push 1
lea eax, [ebp - 0x230]
push eax
call fcn.10003e00
mov dword [ebp - 0x5b0], eax
mov ecx, dword [ebp - 0x5b0]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x10009a71
push 0
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x10009a5b
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx]
add eax, 0x1c
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], 1
jmp 0x1000978e
mov ecx, dword [ebp - 0x248]
add ecx, 1
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x240]
mov eax, dword [edx]
sub eax, 2
cmp dword [ebp - 0x248], eax
jg 0x10009a4e
mov ecx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x5ac]
mov ecx, dword [edx + ecx*8]
cmp ecx, dword [eax + 0x48]
jne 0x10009a49
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [eax + edx*8 + 4]
cmp edx, dword [ecx + 0x30]
jne 0x10009a49
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
jmp 0x100097ff
mov ecx, dword [ebp - 0x24c]
add ecx, 1
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x240]
mov eax, dword [edx]
sub eax, 2
cmp dword [ebp - 0x24c], eax
jg 0x1000983b
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + ecx*8 + 8]
mov ecx, dword [edx + ecx*8 + 0xc]
mov edx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x244]
mov dword [esi + edx*8], eax
mov dword [esi + edx*8 + 4], ecx
jmp 0x100097f0
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + eax*8 - 4]
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x244]
mov eax, dword [ecx + eax*8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx]
sub edx, 1
mov eax, dword [ebp - 0x240]
mov dword [eax], edx
mov ecx, dword [ebp - 0x240]
cmp dword [ecx], 2
jne 0x10009a47
mov edx, dword [ebp - 0x240]
cmp dword [edx + 8], 0
je 0x10009a47
mov eax, dword [ebp - 0x240]
movzx ecx, byte [eax + 0x16]
xor edx, edx
cmp ecx, 0xe9
setne dl
add edx, 5
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx + 0xc]
push edx
call fcn.10006c10
test eax, eax
jne 0x10009a20
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x240]
mov eax, dword [ecx]
cmp eax, dword [edx + 0x16]
jne 0x10009a20
cmp dword [ebp - 0x250], 5
jne 0x10009908
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx + 0xc]
movzx eax, byte [edx + 4]
mov ecx, dword [ebp - 0x240]
movzx edx, byte [ecx + 0x1a]
cmp eax, edx
je 0x10009934
cmp dword [ebp - 0x250], 6
jne 0x10009a20
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
movzx edx, word [ecx + 4]
mov eax, dword [ebp - 0x240]
movzx ecx, word [eax + 0x1a]
cmp edx, ecx
jne 0x10009a20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x254]
push edx
push 0x40
push 8
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1000997f
cmp dword [ebp - 0x258], 0
je 0x10009a20
mov edx, dword [ebp - 0x250]
push edx
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x240]
add edx, 0x10
push edx
call fcn.10009f30
test eax, eax
jne 0x100099d3
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x240]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + 0xc]
push eax
call fcn.1001bea0
add esp, 0xc
mov ecx, dword [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [ebp - 0x254]
push ecx
mov edx, dword [ebp - 0x254]
push edx
push 8
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 8]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x23c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009a4e
jmp 0x1000977f
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x5ac]
cmp dword [ecx + 0x14], 0
jne 0x10009a71
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], 0
je 0x10009a94
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x5ac]
movzx eax, byte [edx + 0x11]
test eax, eax
jne 0x10009ac2
mov ecx, dword [ebp - 0x5ac]
cmp dword [ecx + 0x28], 0
je 0x10009ac2
mov edx, dword [ebp - 0x5ac]
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [ecx + 0x44]
mov dword [eax], edx
mov eax, dword [ebp - 0x5ac]
cmp dword [eax + 4], 0
je 0x10009dd7
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov byte [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x27c]
push edx
push 1
call fcn.10006820
add esp, 0xc
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 1
mov eax, 1
test eax, eax
je 0x10009d51
mov dword [ebp - 0x280], 1
mov dword [ebp - 0x284], 0
jmp 0x10009b77
mov ecx, dword [ebp - 0x284]
add ecx, 1
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x58c], edx
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x58c]
jge 0x10009c03
mov dword [ebp - 0x558], 0x10001
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x26c]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x590], eax
lea ecx, [ebp - 0x558]
push ecx
mov edx, dword [ebp - 0x590]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10009bfe
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [ebp - 0x4a0]
cmp edx, dword [ecx + 0x2c]
jb 0x10009bfe
mov eax, dword [ebp - 0x5ac]
mov ecx, dword [eax + 0x2c]
add ecx, 0x3000
cmp dword [ebp - 0x4a0], ecx
ja 0x10009bfe
mov dword [ebp - 0x280], 0
jmp 0x10009c03
jmp 0x10009b68
mov edx, dword [ebp - 0x5ac]
cmp dword [edx + 0xc], 0
je 0x10009cf5
mov dword [ebp - 0x55c], 0
jmp 0x10009c2e
mov eax, dword [ebp - 0x55c]
add eax, 1
mov dword [ebp - 0x55c], eax
cmp dword [ebp - 0x55c], 0x222
jge 0x10009cf5
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x55c]
cmp dword [edx + eax*4], 0
je 0x10009cf0
mov ecx, dword [ebp - 0x5ac]
mov esi, dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [ebp - 0x55c]
cmp dword [esi + edx*4], eax
jne 0x10009c7f
mov dword [ebp - 0x280], 0
jmp 0x10009cf5
mov dword [ebp - 0x560], 0
jmp 0x10009c9a
mov eax, dword [ebp - 0x560]
add eax, 1
mov dword [ebp - 0x560], eax
mov ecx, dword [ebp - 0x278]
mov dword [ebp - 0x594], ecx
mov edx, dword [ebp - 0x560]
cmp edx, dword [ebp - 0x594]
jge 0x10009ce5
mov eax, dword [ebp - 0x5ac]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x55c]
mov eax, dword [ebp - 0x560]
mov esi, dword [ebp - 0x27c]
mov ecx, dword [ecx + edx*4]
cmp ecx, dword [esi + eax*4]
jne 0x10009ce3
mov dword [ebp - 0x280], 0
jmp 0x10009ce5
jmp 0x10009c8b
cmp dword [ebp - 0x280], 0
jne 0x10009cf0
jmp 0x10009cf5
jmp 0x10009c1f
cmp dword [ebp - 0x280], 0
je 0x10009d00
jmp 0x10009d51
mov dword [ebp - 0x25c], 1
mov edx, dword [ebp - 0x5ac]
movzx eax, byte [edx + 0x10]
test eax, eax
je 0x10009d41
lea ecx, [ebp - 0x26c]
call fcn.100035d0
lea ecx, [ebp - 0x27c]
call fcn.100035d0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.1001d770
add esp, 8
jmp 0x10009f18
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10009b45
mov dword [ebp - 4], 0xffffffff
call fcn.10009d5f
jmp 0x10009dad
cmp dword [ebp - 0x25c], 0
je 0x10009dc1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x26c]
call fcn.100035d0
lea ecx, [ebp - 0x27c]
call fcn.100035d0
cmp dword [ebp - 0x234], 0
je 0x10009e30
push 0x1c
lea edx, [ebp - 0x580]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x10009e0d
cmp dword [ebp - 0x56c], 0x40
je 0x10009e1c
cmp dword [ebp - 0x56c], 0x20
je 0x10009e1c
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10009e30
push 0x8000
push 0
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [ebp - 0x20], 0
je 0x10009e47
push 0x8000
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov ecx, dword [ebp - 0x5ac]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x5ac]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x5ac]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x5ac]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x5ac]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x5ac]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x5ac]
cmp dword [edx + 0x34], 0
je 0x10009f18
mov eax, dword [ebp - 0x5ac]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0x588], ecx
mov edx, dword [ebp - 0x588]
mov dword [ebp - 0x584], edx
cmp dword [ebp - 0x584], 0
je 0x10009f01
mov ecx, dword [ebp - 0x584]
call fcn.1000e4f0
mov eax, 1
and eax, 1
je 0x10009ef3
mov ecx, dword [ebp - 0x584]
push ecx
call fcn.1001aee3
add esp, 4
mov edx, dword [ebp - 0x584]
mov dword [ebp - 0x5b4], edx
jmp 0x10009f0b
mov dword [ebp - 0x5b4], 0
mov eax, dword [ebp - 0x5ac]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret