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

Disassembly:
push 0xffffffffffffffff
push 0x5ceae9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], 0
call fcn.00438090
mov ebp, 1
mov dword [esp + 0x50], ebp
lea ecx, [esp + 0x18]
call fcn.00438090
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x30]
call fcn.00438090
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x28]
call fcn.00438090
mov byte [esp + 0x50], 4
mov edi, dword [esp + 0x5c]
push edi
lea ecx, [esp + 0x34]
call fcn.0043a980
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461fb2
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
lea esi, [eax + 1]
mov eax, dword [edx - 8]
mov ecx, ebp
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x461fe4
push esi
lea ecx, [esp + 0x24]
call fcn.00402650
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.0045dc80
add esp, 8
test eax, eax
jne 0x462052
mov esi, dword [esp + 0x58]
push 0x5dbe20
mov ecx, esi
call fcn.0043bf90
mov dword [esp + 0xc], ebp
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x28]
call fcn.004381e0
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x30]
call fcn.004381e0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x18]
call fcn.004381e0
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x20]
call fcn.004381e0
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0051d859
add esp, 8
test eax, eax
jl 0x4622b6
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx - 8]
jg 0x4622b6
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x462090
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
lea esi, [eax + 1]
mov eax, dword [edx - 8]
mov ecx, ebp
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4620c2
push esi
lea ecx, [esp + 0x1c]
call fcn.00402650
mov edx, dword [esp + 0x18]
push edx
push edi
call fcn.0045dbb0
add esp, 8
test eax, eax
jne 0x4620e5
mov esi, dword [esp + 0x58]
push 0x5dbe20
mov ecx, esi
call fcn.0043bf90
jmp 0x462002
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0051d859
add esp, 8
test eax, eax
jl 0x4622b6
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x4622b6
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x30]
cmp dword [eax - 0xc], ecx
jl 0x46216c
push 0x5e3408
push eax
call fcn.0051d47a
add esp, 8
test eax, eax
je 0x46216c
sub eax, dword [esp + 0x30]
sar eax, 1
js 0x46216c
add eax, 3
push eax
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040de10
mov byte [esp + 0x50], 5
push eax
lea ecx, [esp + 0x2c]
call fcn.00439f50
mov byte [esp + 0x50], 4
lea ecx, [esp + 0x10]
call fcn.0040d310
push ebx
lea ecx, [esp + 0x3c]
call fcn.00438090
mov byte [esp + 0x54], 6
movzx ecx, word [esp + 0x64]
push ecx
lea edx, [esp + 0x40]
push 0x5e34dc
push edx
call fcn.00403bb0
add esp, 0xc
push 0x5e31c4
lea ecx, [esp + 0x18]
call fcn.0043bf90
mov byte [esp + 0x54], 7
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004262c0
add esp, 8
mov bl, al
mov byte [esp + 0x54], 6
lea ecx, [esp + 0x14]
call fcn.004381e0
test bl, bl
je 0x462213
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00428bf0
mov bl, 8
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00428bf0
add esp, 0x18
mov byte [esp + 0x54], 9
push eax
lea ecx, [esp + 0x30]
call fcn.0043a880
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x14]
call fcn.004381e0
jmp 0x462239
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00428bf0
add esp, 0xc
mov byte [esp + 0x54], 0xa
push eax
lea ecx, [esp + 0x30]
call fcn.0043a880
mov byte [esp + 0x54], 6
lea ecx, [esp + 0x44]
call fcn.004381e0
mov esi, dword [esp + 0x5c]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00438190
mov dword [esp + 0x10], ebp
mov byte [esp + 0x54], 4
lea ecx, [esp + 0x3c]
call fcn.004381e0
mov byte [esp + 0x54], 3
lea ecx, [esp + 0x2c]
call fcn.004381e0
mov byte [esp + 0x54], 2
lea ecx, [esp + 0x34]
call fcn.004381e0
mov byte [esp + 0x54], 1
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x24]
call fcn.004381e0
mov ecx, dword [esp + 0x4c]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x48
ret
push 0x80070057
call fcn.00401300
int3