Function at 0x10072060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x100725a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
mov edx, dword [0x10062f20]
call fcn.10062588
lea eax, [ebp - 0x30]
mov edx, dword [0x10062f4c]
call fcn.10062588
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0
je 0x10072565
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2c], 0
jne 0x10072565
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0xc], 0
sete byte [ebp - 0x11]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [0x10096d48]
call fcn.1006fb48
cmp byte [ebp - 0x11], 0
je 0x10072144
lea edx, [ebp - 0x134]
mov eax, dword [0x10096d2c]
call fcn.10064af8
push dword [ebp - 0x134]
push 0x100725c0
push dword [ebp - 0x18]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.1006173c
mov eax, dword [ebp - 0x130]
call fcn.1006187c
push eax
call fcn.1006f448
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10072565
xor edx, edx
push ebp
push 0x1007255e
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp - 0x11], 0
je 0x1007216d
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
xor edx, edx
push ebp
push 0x1007253a
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x10], 0
jne 0x100721c7
push 0xffffffffffffffff
lea edx, [ebp - 0x13c]
mov eax, dword [0x10096d40]
call fcn.10064af8
push dword [ebp - 0x13c]
push 0x100725c0
push dword [ebp - 0x18]
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.1006173c
mov eax, dword [ebp - 0x138]
call fcn.1006187c
push eax
call fcn.1006f9b4
mov dword [ebp - 0x1c], eax
jmp 0x100721cc
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
jne 0x100721dc
cmp dword [ebp - 0x1c], 0
je 0x100724d4
xor edx, edx
push ebp
push 0x100724cd
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x10], 0
jne 0x10072207
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100724b0
xor edx, edx
push ebp
push 0x100724a9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
lea edx, [ebx + 0x16]
cmp eax, dword [edx]
jne 0x10072248
mov eax, dword [ebx + 0xc]
add eax, 4
mov ax, word [eax]
lea edx, [ebx + 0x16]
add edx, 4
cmp ax, word [edx]
je 0x1007248c
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x24]
push eax
push 0x40
push 8
push esi
call sub.KERNEL32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x1007248c
lea edx, [ebp - 0x12c]
mov eax, dword [ebx + 0xc]
call fcn.1006760c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x35], 0
je 0x100722a6
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x110]
cmp eax, 6
jae 0x100722a6
push ebp
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebx + 0xc]
call fcn.10071dc0
pop ecx
test al, al
jne 0x100722aa
xor eax, eax
jmp 0x100722ac
mov al, 1
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
je 0x10072372
mov byte [ebp - 0x26], 0xf4
mov edx, dword [ebx + 0xc]
lea eax, [ebp - 0x26]
mov ecx, 1
call fcn.1006ede0
test al, al
jne 0x100722d9
mov eax, dword [ebx + 0xc]
mov dl, byte [ebp - 0x26]
mov byte [eax], dl
mov eax, dword [ebx + 0xc]
mov edx, 1
call fcn.10071ce0
lea eax, [ebp - 0x30]
mov edx, dword [0x10062f4c]
call fcn.10062588
push eax
mov edx, dword [0x10062f20]
lea eax, [ebp - 0x2c]
call fcn.10062588
mov edx, eax
mov al, 1
pop ecx
call fcn.100718d4
test al, al
je 0x10072372
mov eax, dword [ebp - 0x30]
call fcn.100623c8
test eax, eax
jl 0x10072372
inc eax
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x108], 0x10001
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x10072360
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x50]
jae 0x10072360
mov eax, dword [ebx + 0xc]
add eax, 5
cmp eax, dword [ebp - 0x50]
jbe 0x10072360
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x10072323
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_CloseHandle
inc edi
dec dword [ebp - 0x3c]
jne 0x10072323
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x16]
mov ecx, 6
call fcn.1006ede0
test al, al
jne 0x10072396
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x16]
mov dword [eax], edx
mov dx, word [ebx + 0x1a]
mov word [eax + 4], dx
mov eax, dword [ebx + 0xc]
mov edx, 6
call fcn.10071ce0
cmp byte [ebp - 0x25], 0
je 0x10072469
mov dl, 1
mov eax, dword [0x10096c58]
call fcn.10068b30
mov esi, eax
lea eax, [esi + 0xe]
lea edx, [esi + 0xa]
add eax, dword [edx]
mov dword [ebp - 0x34], eax
mov edx, dword [0x10062f4c]
lea eax, [ebp - 0x30]
call fcn.10062588
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x10062f20]
call fcn.10062588
mov edx, eax
mov al, 1
pop ecx
call fcn.100718d4
test al, al
je 0x10072469
mov eax, dword [ebp - 0x30]
call fcn.100623c8
test eax, eax
jl 0x10072469
inc eax
mov dword [ebp - 0x3c], eax
xor edi, edi
mov dword [ebp - 0x108], 0x10001
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_GetThreadContext
test eax, eax
je 0x10072457
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebp - 0x50]
je 0x1007244e
cmp esi, dword [ebp - 0x50]
ja 0x10072439
lea eax, [esi + 0xa]
cmp eax, dword [ebp - 0x50]
jae 0x1007244e
mov eax, dword [ebp - 0x50]
and eax, 0xffff0000
mov edx, dword [ebp - 0x34]
and edx, 0xffff0000
cmp eax, edx
jne 0x10072457
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x10072403
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + edi*4]
push eax
call sub.KERNEL32.dll_CloseHandle
inc edi
dec dword [ebp - 0x3c]
jne 0x10072403
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 8
mov eax, dword [ebx + 0xc]
push eax
call sub.KERNEL32.dll_VirtualProtect
cmp byte [ebp - 0x25], 0
je 0x1007248c
push ebp
mov eax, dword [ebp - 0x38]
call fcn.10071fe0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100724b0
cmp dword [ebp - 0x1c], 0
je 0x100724a8
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100724d4
cmp dword [ebp - 0x1c], 0
je 0x100724cc
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
cmp dword [ebp - 0x20], 0
je 0x1007251d
mov eax, dword [ebp - 8]
cmp byte [eax + 0x38], 0
je 0x1007251d
mov eax, dword [ebp - 8]
cmp byte [eax + 0x37], 0
je 0x100724f9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
call fcn.1006fea4
jmp 0x100724fb
xor eax, eax
mov edx, dword [ebp - 8]
cmp byte [edx + 0x37], 0
je 0x10072508
test eax, eax
je 0x1007251d
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x20]
call fcn.10070010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10072541
cmp byte [ebp - 0x11], 0
je 0x10072539
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100725ae
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.1006144c
lea eax, [ebp - 0x30]
mov edx, dword [0x10062f4c]
call fcn.10062588
lea eax, [ebp - 0x2c]
mov edx, dword [0x10062f20]
call fcn.10062588
lea eax, [ebp - 0x18]
call fcn.10061428
ret