Function at 0x4971e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ec2f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
push 0x4efd50
push eax
mov eax, dword [esp + 0x4c]
push ecx
push eax
push 0xd
mov ecx, ebp
call fcn.0043d880
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x50]
mov dword [ebp], 0x4f9768
mov dword [ebp + 0x48], ecx
mov esi, dword [ebx]
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
call fcn.00449130
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
mov dword [ebp + 0x4c], eax
mov eax, dword [esp + 0x58]
xor edx, edx
mov dword [ebp + 0x50], edx
mov dword [ebp + 0x54], edx
mov dword [ebp + 0x58], 0xfffff000
mov ecx, dword [eax]
mov dword [ebp + 0x40], ecx
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x60]
mov dword [ebp + 0x44], eax
mov edi, dword [ebx]
mov eax, ecx
and eax, 0x100
xor esi, esi
test ecx, 0x40000000
mov byte [esp + 0x2c], 1
je 0x4972bb
mov esi, 1
test ecx, 0x20000000
je 0x4972c6
or esi, 2
cmp dword [esp + 0x5c], 0xfffffff0
je 0x4972d3
or esi, 0x10000000
cmp eax, edx
je 0x4972dd
or esi, 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jl 0x497429
lea ecx, [edi + eax*2 - 8]
push ecx
push str..swf
call fcn.00444a10
add esp, 8
test al, al
je 0x497429
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x28]
add eax, edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [0x51d3cc]
add ecx, ebx
cmp eax, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
je 0x497437
test eax, eax
jne 0x497360
mov dword [0x51d3cc], 1
call fcn.004567a0
test eax, eax
je 0x497437
mov dword [0x51d3cc], eax
push 0x54
call fcn.004cc845
mov ebx, eax
add esp, 4
mov dword [esp + 0x54], ebx
test ebx, ebx
mov byte [esp + 0x2c], 2
je 0x497396
mov ecx, ebx
call fcn.004a3850
xor eax, eax
lea ecx, [ebp + 0x34]
mov dword [ebx], 0x4f8810
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
jmp 0x497398
xor ebx, ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0
push 0
push edx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x58], 0x12345004
mov ecx, dword [eax + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
or esi, 0x40000000
push esi
push 0x4efd50
mov ecx, ebx
mov byte [esp + 0x48], 1
call fcn.00456930
mov dword [esp + 0x5c], 0
cmp word [edi + 2], 0x3a
mov byte [esp + 0x2c], 3
je 0x497404
push 0x4fb5b4
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x497404
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.00422660
add esp, 8
mov edi, eax
push edi
mov ecx, ebx
call fcn.00449ef0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x497437
mov ecx, dword [0x51d3c8]
add eax, 0xfffffff8
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x497437
mov edx, dword [esp + 0x38]
push edx
push esi
push edi
mov ecx, ebp
call fcn.00486890
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x30