Function at 0x536450
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Enumerate pe sections
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b57eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5fa040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
mov byte [ebx], al
movzx eax, byte [esi + 1]
mov byte [ebx + 1], al
movzx eax, byte [esi + 2]
mov byte [ebx + 2], al
movzx eax, byte [esi + 3]
mov byte [ebx + 3], al
movzx eax, byte [esi + 4]
mov byte [ebx + 4], al
movzx eax, byte [esi + 5]
mov byte [ebx + 5], al
movzx eax, byte [esi + 6]
mov byte [ebx + 6], al
movzx eax, byte [esi + 7]
mov byte [ebx + 7], al
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
mov edi, dword [esi + 0x5c]
mov dword [ebx + 0x58], 0
lea eax, [edi + 1]
push eax
call fcn.0058813f
mov dword [ebx + 0x58], eax
add esp, 4
mov dword [ebx + 0x5c], edi
mov dword [ebx + 0x60], edi
mov edx, dword [esi + 0x58]
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x536550
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x68]
mov dword [ebx + 0x64], 0
lea eax, [edi + 1]
push eax
call fcn.0058813f
mov dword [ebx + 0x64], eax
add esp, 4
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x6c], edi
mov edx, dword [esi + 0x64]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x536587
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x74]
mov dword [ebx + 0x70], 0
lea eax, [edi + 1]
push eax
call fcn.0058813f
mov dword [ebx + 0x70], eax
add esp, 4
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x78], edi
mov edx, dword [esi + 0x70]
nop dword [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x5365c0
mov byte [ebp - 4], 2
mov edi, dword [esi + 0x80]
mov dword [ebx + 0x7c], 0
lea eax, [edi + 1]
push eax
call fcn.0058813f
mov dword [ebx + 0x7c], eax
add esp, 4
mov dword [ebx + 0x80], edi
mov dword [ebx + 0x84], edi
mov edx, dword [esi + 0x7c]
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x536600
mov byte [ebp - 4], 3
mov edi, dword [esi + 0x8c]
mov dword [ebx + 0x88], 0
lea eax, [edi + 1]
push eax
call fcn.0058813f
mov dword [ebx + 0x88], eax
add esp, 4
mov dword [ebx + 0x8c], edi
mov dword [ebx + 0x90], edi
mov edx, dword [esi + 0x88]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x536646
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x98]
mov dword [ebx + 0x94], 0
lea eax, [edi + 1]
push eax
call fcn.0058813f
mov dword [ebx + 0x94], eax
add esp, 4
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x9c], edi
mov edx, dword [esi + 0x94]
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x536690
mov byte [ebp - 4], 5
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
mov dword [ebx + 0xa0], eax
lea eax, [esi + 0xa8]
mov dword [ebx + 0xa4], ecx
lea ecx, [ebx + 0xa8]
push eax
call fcn.00536700
add esi, 0xc4
mov byte [ebp - 4], 6
push esi
lea ecx, [ebx + 0xc4]
call fcn.00536700
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4