Function at 0x5591d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
mov edx, dword [0x523db4]
call fcn.00408648
xor eax, eax
push ebp
push 0x559592
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x629fa0], 0
jne 0x559561
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x559278
push 0
mov dl, 1
mov eax, dword [0x629cb8]
call fcn.005294b0
call fcn.00553e00
push eax
push 0x558fec
push 0x629f90
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00559b58
push 0
mov dl, 1
mov eax, dword [0x629cbc]
call fcn.005294b0
call fcn.00553e00
push eax
push 0x559054
push 0x629f94
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00559b58
jmp 0x55955a
cmp byte [0x629fa1], 0
jne 0x559505
mov byte [0x629fa1], 1
lea edx, [ebp - 4]
mov eax, dword [0x629dcc]
call fcn.0051c2c4
lea eax, [ebp - 0x60]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0051b8f0
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 4]
call fcn.00407744
mov eax, dword [ebp - 0x5c]
call fcn.004078d8
push eax
push 0xc
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x559505
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
setne byte [ebp - 0x45]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
je 0x5594fb
mov ebx, 0x32
cmp byte [ebp - 0x45], 0
jne 0x559338
mov eax, dword [edi]
mov edx, dword [edi + 4]
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x55932a
cmp eax, dword [esp]
pop edx
pop eax
je 0x559338
push 0x32
call sub.kernel32.dll_Sleep_1
dec ebx
jne 0x55930c
cmp byte [ebp - 0x45], 0
jne 0x559353
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 4]
jne 0x55934d
cmp eax, dword [ecx]
je 0x5594ed
push 0x40
push 0x1000
push 0xa
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x4c], eax
mov dl, 1
mov eax, dword [0x629c40]
call fcn.005295bc
mov dword [ebp - 0x54], eax
mov dl, 1
mov eax, dword [0x629cc0]
call fcn.005294b0
lea edx, [ebp - 0x44]
call fcn.00529364
mov eax, dword [ebp - 0x24]
call fcn.00409178
test eax, eax
jl 0x5594bd
inc eax
xor ebx, ebx
mov edx, ebx
add edx, edx
add edx, edx
add edx, edx
sub edx, ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + edx*4 + 0xc]
cmp edx, dword [ebp - 0x54]
jne 0x5594b5
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
jne 0x5593d8
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x18], 0
je 0x5594bd
mov edx, dword [ebp - 0x4c]
mov dword [edi + 8], edx
mov edx, dword [ebp - 0x4c]
mov byte [edx], 0xff
mov edx, dword [ebp - 0x4c]
mov byte [edx + 1], 0x25
mov edx, dword [ebp - 0x4c]
add edx, 6
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 2], edx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
mov dword [edx + 6], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + eax*4 + 0x14], 0
je 0x559420
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x14]
mov dword [ebp - 0x54], eax
jmp 0x55942c
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4 + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
call fcn.0052ab08
mov byte [ebp - 0x55], al
cmp byte [ebp - 0x55], 0
je 0x55944e
mov edx, 4
mov eax, dword [ebp - 0x54]
call fcn.0052abe8
test al, al
je 0x5594bd
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x24]
cmp byte [edx + eax*4 + 0x10], 0
je 0x559474
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [edx + eax*4 + 4]
sub ecx, 5
mov dword [ebp - 0x50], ecx
jmp 0x55947a
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov ecx, 4
mov edx, dword [ebp - 0x54]
call fcn.00553430
test al, al
jne 0x559496
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov dword [eax], edx
cmp byte [ebp - 0x55], 0
je 0x5594a9
mov edx, 4
mov eax, dword [ebp - 0x54]
call fcn.0052ac78
mov eax, dword [ebp - 0x4c]
mov dword [0x629fa4], eax
xor esi, esi
jmp 0x5594bd
inc ebx
dec eax
jne 0x55939c
cmp dword [0x629fa4], 0
jne 0x5594de
push edi
call sub.kernel32.dll_UnmapViewOfFile
push 0x8000
push 0
mov eax, dword [ebp - 0x4c]
push eax
call sub.kernel32.dll_VirtualFree_1
jmp 0x5594fb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
jmp 0x5594fb
mov eax, dword [edi + 8]
mov dword [0x629fa4], eax
push edi
call sub.kernel32.dll_UnmapViewOfFile
test esi, esi
je 0x559505
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [0x629fa4], 0
je 0x55952f
push 0
mov eax, dword [0x629fa4]
push eax
push 0x55914c
push 0x629f9c
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00559b58
jmp 0x55955a
push 0
mov dl, 1
mov eax, dword [0x629cc0]
call fcn.005294b0
call fcn.00553e00
push eax
push 0x5590d0
push 0x629f98
push 0
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00559b58
mov byte [0x629fa0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x559599
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00406f3c
lea eax, [ebp - 0x44]
mov edx, dword [0x523db4]
call fcn.00408720
lea eax, [ebp - 4]
call fcn.00406ed0
ret