Function at 0x47ed3a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5323e4
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0xa0]
xor ecx, ecx
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ecx
mov word [esp + 0x3c], ax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x94], ecx
mov ecx, edi
mov eax, dword [edi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x34], eax
call fcn.0047c437
mov ecx, dword [edi + 0x58]
mov edx, eax
sar edx, 0x10
mov ebx, esi
movzx ebp, ax
shl ebp, 5
mov dword [esp + 0x28], eax
add ebp, dword [ecx + edx*4]
lea ecx, [ebx + 2]
xor edx, edx
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x47edea
sub ebx, ecx
mov ecx, dword [esp + 0x1c]
sar ebx, 1
test ecx, ecx
je 0x47ef3a
cmp word [ecx], dx
je 0x47ef3a
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], edx
mov word [esp + 0x54], ax
push ecx
mov eax, esp
mov byte [esp + 0x98], 1
mov dword [eax], ecx
lea ecx, [esp + 0x70]
call fcn.0047c884
pop ecx
push eax
lea ecx, [esp + 0x58]
call fcn.00460dfd
push 0
push 1
lea ecx, [esp + 0x74]
call fcn.004510a8
mov esi, dword [esp + 0x64]
push 0x56a0dc
call fcn.00450d3f
pop ecx
push eax
push 0x56a0dc
lea ecx, [esp + 0x44]
call fcn.00450cc6
push dword [esp + 0x18]
call fcn.00450d3f
pop ecx
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x44]
call fcn.0045405e
push 0x56a0f0
call fcn.00450d3f
pop ecx
push eax
push 0x56a0f0
lea ecx, [esp + 0x44]
call fcn.0045405e
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
call fcn.00453fb8
push 0x56a0e8
call fcn.00450d3f
pop ecx
push eax
push 0x56a0e8
lea ecx, [esp + 0x44]
call fcn.0045405e
push dword [esp + 0x18]
call fcn.00450d3f
pop ecx
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x44]
call fcn.0045405e
push 0x56a0f8
call fcn.00450d3f
pop ecx
push eax
push 0x56a0f8
lea ecx, [esp + 0x44]
call fcn.0045405e
lea eax, [esi + 5]
lea eax, [eax + ebx*2]
mov dword [ebp + 4], eax
lea ecx, [ebx + 3]
mov eax, dword [ebp + 8]
and eax, 0x2fffff
shl ecx, 0x16
add eax, ecx
mov byte [esp + 0x94], 0
and eax, 0xffd00000
add eax, 2
add eax, ebx
mov dword [ebp + 8], eax
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.004510a8
jmp 0x47ef98
push 0x56a0c4
call fcn.00450d3f
pop ecx
push eax
push 0x56a0c4
lea ecx, [esp + 0x44]
call fcn.00450cc6
push esi
call fcn.00450d3f
pop ecx
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.0045405e
mov esi, 0x56a0e0
push esi
call fcn.00450d3f
pop ecx
push eax
push esi
lea ecx, [esp + 0x44]
call fcn.0045405e
lea eax, [ebx + 3]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 8]
and eax, 0x100000
add eax, 3
add eax, ebx
and eax, 0x2fffff
mov dword [ebp + 8], eax
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
call fcn.0047e8ac
mov ecx, dword [esp + 0x30]
mov esi, eax
mov ebx, dword [esp + 0x28]
and dword [ebp + 0x14], 0
and dword [ebp + 0xc], 0
push ebx
push dword [esp + 0x28]
mov dword [ebp], ecx
mov ecx, edi
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0047f033
mov eax, dword [esp + 0x4c]
push ecx
sub eax, esi
mov ecx, edi
push eax
push ebx
call fcn.0047e7d7
xor eax, eax
mov dword [edi + 0x30], ebp
xor ecx, ecx
mov dword [edi + 0x34], ebx
test ebx, ebx
mov dword [edi + 0x38], eax
push eax
setne cl
mov dword [edi + 0x48], eax
mov dword [edi + 0x44], ecx
lea ecx, [esp + 0x40]
push 1
mov dword [edi + 0x4c], eax
call fcn.004510a8
mov al, 1
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00501f3e
add esp, 0x84
ret 0xc