Function at 0x10055590
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x100555aa
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov esi, dword [esp + 0x10]
test byte [esi + 4], 0x40
jne 0x100555c3
mov ecx, 0xd
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ecx
ret 4
push 0x40
push 0x3000
push 0x80
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x2c], eax
add eax, 0x40
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0xc]
mov dword [edi], eax
mov ecx, dword [esi + 0x1c]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0x10]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x18], 0
cdq
and edx, 7
mov dword [edi + 0x14], ecx
add eax, edx
sar eax, 3
mov dword [edi + 4], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x10055620
mov dword [edi + 0x18], 0xff000000
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x1005562e
or dword [edi + 0x18], 0xff0000
mov ecx, dword [edi + 0x10]
test ecx, ecx
jne 0x1005563e
mov ecx, dword [edi + 0x18]
or ch, 0xff
mov dword [edi + 0x18], ecx
mov ecx, dword [edi + 0x14]
test ecx, ecx
jne 0x1005564e
mov ecx, dword [edi + 0x18]
or cl, 0xff
mov dword [edi + 0x18], ecx
push ebx
push ebp
test eax, eax
mov cl, 8
mov byte [edi + 0x1d], 0
je 0x10055682
test al, 1
jne 0x1005566c
mov bl, byte [edi + 0x1d]
shr eax, 1
inc bl
test al, 1
mov byte [edi + 0x1d], bl
je 0x1005565e
test al, 1
mov byte [edi + 0x1c], cl
je 0x10055686
mov dl, cl
shr eax, 1
dec dl
test al, 1
jne 0x10055675
mov byte [edi + 0x1c], dl
jmp 0x10055686
mov byte [edi + 0x1c], 0
mov bl, byte [edi + 0x1c]
mov eax, dword [edi + 0xc]
add bl, 0x18
mov byte [edi + 0x1c], bl
mov byte [edi + 0x1f], 0
test eax, eax
je 0x100556c2
test al, 1
jne 0x100556ac
mov bl, byte [edi + 0x1f]
shr eax, 1
inc bl
test al, 1
mov byte [edi + 0x1f], bl
je 0x1005569e
test al, 1
mov byte [edi + 0x1e], cl
je 0x100556c6
mov dl, cl
shr eax, 1
dec dl
test al, 1
jne 0x100556b5
mov byte [edi + 0x1e], dl
jmp 0x100556c6
mov byte [edi + 0x1e], 0
mov bl, byte [edi + 0x1e]
mov eax, dword [edi + 0x10]
add bl, 0x10
mov byte [edi + 0x1e], bl
mov byte [edi + 0x21], 0
test eax, eax
je 0x10055702
test al, 1
jne 0x100556ec
mov bl, byte [edi + 0x21]
shr eax, 1
inc bl
test al, 1
mov byte [edi + 0x21], bl
je 0x100556de
test al, 1
mov byte [edi + 0x20], cl
je 0x10055706
mov dl, cl
shr eax, 1
dec dl
test al, 1
jne 0x100556f5
mov byte [edi + 0x20], dl
jmp 0x10055706
mov byte [edi + 0x20], 0
mov bl, byte [edi + 0x20]
mov eax, dword [edi + 0x14]
add bl, cl
mov byte [edi + 0x20], bl
mov byte [edi + 0x23], 0
test eax, eax
je 0x1005573f
test al, 1
jne 0x1005572b
mov bl, byte [edi + 0x23]
shr eax, 1
inc bl
test al, 1
mov byte [edi + 0x23], bl
je 0x1005571d
test al, 1
mov byte [edi + 0x22], cl
je 0x10055743
shr eax, 1
dec cl
test al, 1
jne 0x10055732
mov byte [edi + 0x22], cl
jmp 0x10055743
mov byte [edi + 0x22], 0
mov ebx, dword [edi + 0x14]
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x10]
mov ebp, dword [edi + 0xc]
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 8]
push ebx
mov dword [edi + 0x28], edx
mov edx, dword [edi]
push ecx
mov dword [esp + 0x18], ecx
push ebp
mov dword [edi + 0x24], eax
push esi
mov ecx, 0x10116e60
mov dword [esp + 0x28], edx
mov dword [0x10116e60], eax
mov dword [0x10116e64], 0
call fcn.10055e10
push 0x53
mov ecx, 0x10116e60
call fcn.100559a0
push 0x55
mov ecx, 0x10116e60
call fcn.100559a0
push 2
push 0
mov ecx, 0x10116e60
call fcn.10055a30
push 1
push 5
mov ecx, 0x10116e60
call fcn.10055a30
cmp ebp, 0xff0000
jne 0x100557fb
cmp dword [esp + 0x10], 0xff00
jne 0x100557fb
cmp ebx, 0xff
jne 0x100557fb
test esi, esi
mov esi, dword [esp + 0x18]
jne 0x100558ed
cmp esi, 0x18
jle 0x100558ed
push 0xffffff
push 0
mov ecx, 0x10116e60
call fcn.10055d60
jmp 0x100558ed
push 0
push 3
mov ecx, 0x10116e60
call fcn.10055a30
mov eax, dword [0x10116e74]
mov ecx, 0x10116e60
add eax, 0xfffffff9
push eax
push 0
call fcn.10055cd0
push 3
push 1
mov ecx, 0x10116e60
call fcn.10055a30
mov ecx, dword [0x10116e70]
add ecx, 0xfffffff1
push ecx
push 3
mov ecx, 0x10116e60
call fcn.10055cd0
test esi, esi
je 0x1005586a
push 1
push 2
mov ecx, 0x10116e60
call fcn.10055a30
mov edx, dword [0x10116e68]
mov ecx, 0x10116e60
add edx, 0xffffffe1
push edx
push 2
call fcn.10055cd0
push ebx
push 0
mov ecx, 0x10116e60
call fcn.10055d60
mov eax, dword [0x10116e6c]
mov ecx, 0x10116e60
add eax, 0xffffffe9
push eax
push 1
call fcn.10055cd0
test esi, esi
je 0x1005589d
push esi
push 2
mov ecx, 0x10116e60
call fcn.10055d60
mov ecx, dword [esp + 0x10]
push ecx
push 3
mov ecx, 0x10116e60
call fcn.10055d60
test esi, esi
je 0x100558c0
push 2
push 0
mov ecx, 0x10116e60
call fcn.10055a80
push ebp
push 1
mov ecx, 0x10116e60
call fcn.10055d60
push 3
push 0
mov ecx, 0x10116e60
call fcn.10055a80
push 1
push 0
mov ecx, 0x10116e60
call fcn.10055a80
mov esi, dword [esp + 0x18]
pop ebp
cmp esi, 0x10
pop ebx
je 0x1005593b
cmp esi, 0x18
je 0x10055917
push 0
cmp esi, 0x20
push 0
push 5
mov ecx, 0x10116e60
je 0x10055910
call fcn.10055c40
jmp 0x1005594b
call fcn.10055ad0
jmp 0x1005594b
push 0
push 0
push 5
mov ecx, 0x10116e60
call fcn.10055c40
push 0xfffffffffffffff8
push 0
mov ecx, 0x10116e60
call fcn.10055cd0
push 0
push 1
jmp 0x1005593f
push 0
push 0
push 5
mov ecx, 0x10116e60
call fcn.10055b80
push 0x5d
mov ecx, 0x10116e60
call fcn.100559a0
push 0x5b
mov ecx, 0x10116e60
call fcn.100559a0
push 0
mov ecx, 0x10116e60
call fcn.100559d0
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi]
push ecx
mov ecx, dword [edi + 0x30]
push edx
push eax
push ecx
mov ecx, 0x10116e60
call fcn.10055e90
pop edi
pop esi
pop ecx
ret 4