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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1d
push 0
push 0
dec ecx
jne 0x465c1c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
call fcn.00405300
lea ebx, [ebp - 0x9c]
lea esi, [ebp - 0x24]
xor eax, eax
push ebp
push 0x466557
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.00402d0c
mov dword [ebp - 0x5c], eax
mov eax, 0x400
call fcn.00402d0c
mov dword [ebp - 0x60], eax
mov eax, 0x400
call fcn.00402d0c
mov dword [ebp - 0x64], eax
mov dl, 1
mov eax, dword [0x462a9c]
call fcn.00465580
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov byte [eax + 4], 0
mov dl, 1
mov eax, dword [0x462958]
call fcn.00465208
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0x1c
mov edx, dword [ebp - 0xc]
call fcn.00404ea0
push 0
push 0
mov eax, dword [0x46b1fc]
mov eax, dword [eax]
call eax
lea edx, [ebp - 0xa0]
mov eax, dword [0x46b170]
call fcn.004613c8
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x14]
mov ecx, 0x466568
call fcn.00406b70
lea eax, [ebp - 4]
call fcn.00406b2c
push eax
mov eax, dword [0x46b148]
push eax
push 0
lea eax, [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov edx, 0x466580
call fcn.0040515c
mov edx, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
call fcn.004057b4
mov eax, dword [ebp - 0xa4]
call fcn.004057c4
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.00406c3c
lea eax, [ebp - 8]
call fcn.00406b2c
push eax
mov eax, dword [0x46b36c]
push eax
push 0
lea eax, [ebp - 0xac]
mov edx, 0x466580
mov ecx, dword [ebp - 0xc]
call fcn.0040515c
push edi
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.00406c3c
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0x400
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00406c3c
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x400
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.00406c3c
mov eax, dword [ebp - 0x20]
add eax, 0x1c
mov edx, dword [ebp - 0x60]
call fcn.00405074
lea edx, [ebp - 0xb0]
movsx eax, word [ebx]
call fcn.004092d4
push dword [ebp - 0xb0]
push 0x466590
lea edx, [ebp - 0xb4]
movsx eax, word [ebx + 2]
call fcn.004092d4
push dword [ebp - 0xb4]
mov eax, dword [ebp - 0x20]
add eax, 0x30
mov edx, 3
call fcn.004051d0
movsx eax, word [ebx + 6]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
movsx eax, word [ebx + 4]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x20]
add eax, 0x34
mov edx, dword [ebp - 0x5c]
call fcn.00405074
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x34], 0
jne 0x465e4b
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x34]
mov eax, dword [0x46b610]
call fcn.00407078
xor eax, eax
mov dword [esi], eax
push 0x400
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x465bf0]
call fcn.00406334
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push 0x400
mov eax, dword [ebp - 0x1c]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00406c3c
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x465efa
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x400
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.00406c3c
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0x60]
call fcn.00405074
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
call fcn.00466780
inc dword [ebp - 0x44]
dec dword [ebp - 0x7c]
jne 0x465e99
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
cmp dword [eax + 0x18], 0
jne 0x465f3f
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x1c]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
add eax, 0x20
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 0x1c]
call fcn.00404ea0
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x20]
call fcn.0042960c
mov eax, 0x400
call fcn.00402d0c
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00406c3c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
add eax, 0x24
mov edx, ebx
call fcn.00405074
mov eax, ebx
call fcn.00402d40
cmp dword [esi], 0
je 0x465f8b
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x44]
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
call fcn.00463ca8
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x44]
call fcn.00463e44
dec eax
test eax, eax
jl 0x46606a
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x44]
call fcn.00463e54
mov edi, eax
mov eax, dword [edi + 4]
mov edx, 0x46659c
call fcn.00408f34
test eax, eax
jne 0x46605e
mov eax, dword [edi + 0xc]
call fcn.004634b0
dec eax
jne 0x46605e
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x44]
mov edx, dword [ebp - 0x44]
call fcn.00463e54
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0xe4]
xor edx, edx
call fcn.004634bc
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 0xd0], 0xd
lea edx, [ebp - 0xd4]
xor ecx, ecx
mov eax, 0x4665b4
call fcn.0040a114
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.00408d78
mov eax, dword [ebp - 0x20]
push esi
lea esi, [ebp - 0xc8]
lea edi, [eax + 0x20]
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 bl, 1
jmp 0x46606a
inc dword [ebp - 0x44]
dec dword [ebp - 0x7c]
jne 0x465fc1
test bl, bl
xor eax, eax
mov dword [esi], eax
push 0
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x465bcc]
call fcn.00406334
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00406c3c
lea eax, [ebp - 0x40]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.00406c3c
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x465bcc]
call fcn.00406334
add esp, 4
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00406c3c
cmp dword [esi], 0
je 0x4660fc
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x466262
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x400
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00406c3c
mov eax, dword [ebp - 0x2c]
call fcn.0040efd4
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x64]
call fcn.00405074
mov eax, dword [ebp - 0x10]
mov edx, 0x4665c4
call fcn.0040525c
je 0x466262
test bh, 8
je 0x4661e2
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
push ebx
lea eax, [ebp - 0xe8]
mov edx, dword [ebp - 0x64]
call fcn.00405074
mov eax, dword [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x462a48]
call fcn.004654bc
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov edx, ebx
call fcn.00465618
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
mov edx, ebx
call fcn.00429400
test byte [ebx + 0x11], 4
je 0x466256
mov edx, ebx
mov eax, dword [ebp - 0x74]
call fcn.00465618
jmp 0x466256
test bh, 0x10
je 0x466256
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
push ebx
lea eax, [ebp - 0xec]
mov edx, dword [ebp - 0x64]
call fcn.00405074
mov eax, dword [ebp - 0xec]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x462900]
call fcn.00465190
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.004652a0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
mov edx, ebx
call fcn.00429400
test byte [ebx + 0x11], 4
je 0x466256
mov edx, ebx
mov eax, dword [ebp - 0x78]
call fcn.004652a0
inc dword [ebp - 0x44]
dec dword [ebp - 0x7c]
jne 0x466113
xor eax, eax
mov dword [esi], eax
push 0
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x465bcc]
call fcn.00406334
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00406c3c
lea eax, [ebp - 0x40]
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
call fcn.00406c3c
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x465bcc]
call fcn.00406334
add esp, 4
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00406c3c
cmp dword [esi], 0
je 0x4662f2
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x466394
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x38]
push eax
push 0x400
mov eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
call fcn.00406c3c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
push eax
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x462280]
call fcn.00462cc8
mov ebx, eax
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0x64]
call fcn.00405074
mov byte [ebx + 0x50], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov cl, 1
mov edx, ebx
call fcn.0046317c
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
mov edx, ebx
call fcn.00429400
inc dword [ebp - 0x44]
dec dword [ebp - 0x7c]
jne 0x466309
mov eax, dword [ebp - 0x74]
call fcn.004655fc
dec eax
test eax, eax
jl 0x466408
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x74]
call fcn.00465604
mov ebx, eax
mov esi, dword [ebx + 0x44]
test esi, esi
je 0x466400
xor edx, edx
push ebp
push 0x4663f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
call fcn.00429398
test eax, eax
je 0x4663ec
mov eax, dword [eax + 0x48]
mov edx, ebx
call fcn.00465618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466400
inc dword [ebp - 0x44]
dec dword [ebp - 0x7c]
jne 0x4663ac
mov eax, dword [ebp - 0x78]
call fcn.00465284
dec eax
test eax, eax
jl 0x46647c
inc eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x78]
call fcn.0046528c
mov ebx, eax
mov esi, dword [ebx + 0x44]
test esi, esi
je 0x466474
xor edx, edx
push ebp
push 0x46646a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x48]
call fcn.00429398
test eax, eax
je 0x466460
mov eax, dword [eax + 0x4c]
mov edx, ebx
call fcn.004652a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466474
inc dword [ebp - 0x44]
dec dword [ebp - 0x7c]
jne 0x466420
mov eax, dword [ebp - 0x74]
call fcn.00403ff8
mov eax, dword [ebp - 0x78]
call fcn.00403ff8
mov eax, dword [ebp - 0x60]
call fcn.00402d40
mov eax, dword [ebp - 0x5c]
call fcn.00402d40
mov eax, dword [ebp - 0x64]
call fcn.00402d40
lea eax, [ebp - 0x14]
call fcn.00406b2c
lea eax, [ebp - 4]
call fcn.00406b2c
lea eax, [ebp - 8]
call fcn.00406b2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466561
lea eax, [ebp - 0xec]
mov edx, 2
call fcn.00404e70
lea eax, [ebp - 0xe4]
call fcn.00411564
lea eax, [ebp - 0xcc]
call fcn.00404e4c
lea eax, [ebp - 0xb8]
mov edx, 5
call fcn.00404e70
lea eax, [ebp - 0xa4]
call fcn.00405654
lea eax, [ebp - 0xa0]
call fcn.00406b2c
lea eax, [ebp - 0x1c]
mov edx, dword [0x465bf0]
call fcn.00406454
lea eax, [ebp - 0x18]
mov edx, dword [0x465bcc]
call fcn.00406454
lea eax, [ebp - 0x14]
call fcn.00406b2c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404e70
lea eax, [ebp - 8]
call fcn.00406b2c
lea eax, [ebp - 4]
call fcn.00406b2c
ret