Function at 0x45c779
Capabilities:
Check for peb beingdebugged flag
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b7f1
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x49600c]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
mov eax, dword [0x49600c]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov eax, dword [esi + 4]
xor edx, edx
mov ebx, dword [ebp + 8]
mov edi, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
movzx ecx, byte [eax + 0x3c4]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x468]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x45c7ef
mov eax, dword [ebx + 8]
sub ecx, edx
mov edx, dword [ebx]
add eax, edx
sar ecx, 1
cmp eax, ecx
jae 0x45c822
mov eax, dword [ebx + 0x10]
mov cx, word [eax + edx*2]
call fcn.004567a2
test eax, eax
je 0x45c822
mov byte [ebx + 0xbd], 1
mov dword [esp + 0x20], 0x94
mov ecx, edi
mov eax, dword [ebx + 0xd8]
sub eax, dword [ebx + 0xd4]
cdq
idiv dword [esp + 0x20]
test eax, eax
je 0x45c875
lea ecx, [ebx + 0xcc]
call fcn.004569c9
mov eax, dword [eax + 0x8c]
add eax, dword [esp + 0x28]
cmp edi, eax
jl 0x45c871
lea ecx, [ebx + 0xcc]
call fcn.004569c9
mov edi, dword [eax + 0x8c]
add edi, dword [esp + 0x28]
jmp 0x45c885
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
movzx edi, byte [eax + 0x3c3]
lea eax, [ecx + 1]
imul edi, eax
mov edx, dword [esp + 0x30]
xor eax, eax
mov ecx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 0x290]
test eax, eax
jle 0x45ca6e
cmp ecx, eax
jb 0x45c8ae
call fcn.00445b02
jmp 0x45c8b7
mov eax, dword [edx + 0x28c]
lea eax, [eax + ecx*4]
mov edi, dword [eax]
mov dword [esp + 0x2c], edi
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
test eax, eax
je 0x45ca4b
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
cmp eax, 7
je 0x45ca4b
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
cmp eax, 2
jne 0x45c919
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp edi, dword [eax + 0x43c]
jne 0x45ca4f
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
cmp eax, 1
jne 0x45c942
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp edi, dword [eax + 0x43c]
jne 0x45ca4f
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
cmp eax, 4
je 0x45ca4b
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov al, byte [eax + 0x21d]
test al, al
jne 0x45c987
mov eax, dword [edi]
mov esi, dword [eax + 0x28]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
cmp eax, 3
je 0x45ca4b
mov eax, dword [edi]
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x49943c]
mov ecx, edi
call esi
mov esi, eax
mov dword [esp + 0x38], esi
xor eax, eax
mov dword [esp + 0x4d8], eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [esi]
mov eax, dword [eax]
mov edi, dword [eax + 0x40]
mov ecx, edi
call dword [0x49943c]
mov ecx, dword [esp + 0x2c]
call edi
mov ecx, dword [ebx]
push eax
call dword [0x49943c]
mov ecx, esi
call dword [ebx]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
push ecx
push dword [esp + 0x2c]
mov dword [esi + 8], eax
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x1c]
push edi
mov eax, dword [eax + 4]
push eax
push ebx
push esi
push dword [eax + 0x454]
call fcn.00462bd6
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x4dc], 1
call fcn.00466ca8
push dword [esp + 0x4bc]
mov byte [ebx + 0xac], 1
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
or dword [esp + 0x4dc], 0xffffffff
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
mov esi, dword [esp + 0x18]
pop ecx
jmp 0x45ca53
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 0x290]
cmp ecx, eax
jl 0x45c8a5
lea ecx, [ebx + 0xcc]
call fcn.00456a4f
mov ecx, dword [esi + 4]
mov edx, ebx
call fcn.004559b3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x45ca9c
push ecx
push ebx
mov ecx, esi
call fcn.0045cb26
test al, al
jne 0x45cac9
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xd8]
sub eax, dword [ebx + 0xd4]
cdq
idiv dword [esp + 0x20]
cmp eax, 5
jae 0x45cac9
mov eax, dword [esi + 4]
inc ecx
mov dword [esp + 0x1c], ecx
movzx eax, byte [eax + 0x3c5]
cmp ecx, eax
jl 0x45c82c
cmp byte [ebx + 0xb6], 0
je 0x45cafb
push ebx
call fcn.0045d250
cmp byte [ebx + 0xb6], 0
je 0x45cafb
cmp byte [ebx + 0xaa], 0
je 0x45cafb
push ecx
xor eax, eax
mov ecx, esi
push ebx
mov byte [ebx + 0xaa], al
call fcn.0045cb26
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.00484070
mov esp, ebp
pop ebp
ret 8