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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
add esi, 0xfffffffc
xor eax, eax
push ebp
push 0x4a0ec7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
add eax, 0x2c
call fcn.004dd5f0
mov edi, eax
mov eax, dword [esi]
add edi, dword [eax + 0xc4]
mov eax, dword [esi]
sub edi, dword [eax + 0xcc]
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov eax, dword [ebx + 0xc]
call fcn.00422c78
mov eax, dword [esi]
mov dl, byte [eax + 0xb0]
mov eax, dword [ebx + 0xc]
call fcn.00422d1c
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
mov eax, dword [ebx + 0xc]
call fcn.00422c38
push 0
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00417570
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c4]
mov edx, 0x401
call fcn.0043acb4
push eax
lea eax, [ebp - 0x28]
mov edx, dword [esi]
mov edx, dword [edx + 0xa4]
mov edx, dword [edx + 0x30]
call fcn.00404e40
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov eax, ebx
call fcn.004dce5c
lea eax, [ebp - 0x24]
call fcn.004dd5f0
add edi, eax
add edi, 2
push 0
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00417570
mov edx, dword [esi]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c8]
call fcn.00418a00
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4a0e0f
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c8]
mov edx, ebx
call fcn.004189a4
mov edx, dword [0x49a040]
call fcn.00403974
test al, al
je 0x4a0e09
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c8]
mov edx, ebx
call fcn.004189a4
mov eax, dword [eax + 0x66]
mov dword [ebp - 0x14], eax
jmp 0x4a0e0f
dec ebx
cmp ebx, 0xffffffff
jne 0x4a0dce
cmp dword [ebp - 0x14], 0
jne 0x4a0e23
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x2f8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x2fc]
mov dword [ebp - 0x10], eax
add edi, dword [ebp - 0x14]
mov dword [ebp - 0xc], edi
mov eax, dword [esi]
add eax, 0x2c
call fcn.004dd60c
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x38]
call fcn.004dd4ec
mov eax, dword [esi]
push esi
lea esi, [ebp - 0x38]
lea edi, [eax + 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp byte [eax + 0x182], 0
je 0x4a0ea5
mov edx, dword [ebp + 8]
cmp byte [edx - 5], 0
jne 0x4a0ea5
mov edx, dword [eax + 0x1e0]
cmp edx, dword [ebp - 0x10]
jge 0x4a0ea5
mov edx, dword [esi]
lea edi, [edx + 0x90]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x1e0]
neg eax
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 4]
mov edi, eax
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0ece
lea eax, [ebp - 0x28]
call fcn.00404cec
ret