Function at 0x638d30
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7589b3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x8bb040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
mov eax, dword [ebx + 0x20]
sub esp, 8
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x50], eax
mov eax, esp
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x48], ecx
mov dword [eax], 0x775914
mov dword [eax + 4], 0
mov eax, dword [ebx + 0x1c]
add eax, 2
push eax
push dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
dec eax
push eax
push dword [ebx + 0x10]
push ecx
push dword [ebx + 8]
mov ecx, edi
call fcn.00612cb0
mov dword [ebp - 4], 0
mov dword [edi], 0x8877ec
mov dword [edi + 0xf8], 0x887928
mov dword [edi + 0x188], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x194]
push dword [ebx + 0x30]
mov dword [edi + 0x18c], 0
xor eax, eax
push dword [ebx + 0x2c]
mov dword [edi + 0x190], 0
mov ecx, esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x44], eax
mov dword [eax], 0
mov dword [esi + 0x14], 0
call fcn.004815d0
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x1ac], eax
lea eax, [ebp - 0x40]
mov byte [edi + 0x1b0], 0
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
mov dword [edi + 0x1c0], 0
mov dword [edi + 0x54], 0x61
mov dword [edi + 0x84], 0x10a
mov dword [edi + 0x88], 0x10a
mov dword [edi + 0x90], 0x105
mov dword [edi + 0x94], 0x105
mov dword [ebp - 0x40], 0x8877b8
mov dword [ebp - 0x1c], eax
push eax
lea ecx, [edi + 0x160]
mov byte [ebp - 4], 3
call fcn.004f2150
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x638ebc
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
push eax
call edx
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xfffffebf
mov byte [edi + 0x105], 0
mov dword [edi + 0x54], eax
cmp ecx, eax
je 0x638edb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
cmp dword [edi + 0x1a4], 0
mov dword [edi + 0x84], 0x10b
je 0x638f13
cmp dword [edi + 0x1ac], 0
jne 0x638f13
cmp dword [esi + 0x14], 0xf
jbe 0x638eff
mov esi, dword [esi]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edi + 0x6c]
push dword [eax]
push esi
call fcn.006179e0
mov dword [edi + 0x1ac], eax
mov edx, dword [edi + 0x6c]
cmp dword [edx + 0xc], 0x18
jge 0x638f32
mov ecx, 7
mov dword [ebp - 0x4c], 3
mov eax, 0x8877d0
lea esi, [ecx + 2]
jmp 0x638f48
mov eax, 0x887900
mov dword [ebp - 0x4c], 5
mov ecx, 0xa
mov esi, 0xd
mov edx, dword [ebp - 0x4c]
mov dword [edi + 0x1b4], edx
mov edx, 0x15
mov dword [edi + 0x1b8], esi
mov esi, 0x21
mov dword [edi + 0x1bc], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edi + 0x1c0], eax
mov eax, esi
push 0x1b0
cmp dword [ecx + 0xc], 0x18
mov ecx, dword [edi + 0x4c]
cmovl eax, edx
mov edx, dword [edi + 0x6c]
add eax, dword [edi + 0x1ac]
add eax, dword [ebx + 0x18]
mov dword [edi + 0x48], eax
mov eax, ecx
sub eax, dword [edx + 0xc]
sub ecx, dword [edi + 0x1bc]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x190], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x18c], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0xc], 0x18
mov eax, 0x15
cmovl esi, eax
add esi, dword [ebx + 0x18]
call fcn.0073298e
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x48]
push esi
push dword [ebx + 0x28]
mov byte [ebp - 4], 4
push dword [ebp - 0x50]
push ecx
push edi
mov ecx, eax
call fcn.0060d9e0
mov ecx, dword [edi + 0x188]
mov dword [edi + 0x188], eax
test ecx, ecx
je 0x638ffd
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0073297b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x2c