Function at 0x465970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x496278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x40]
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00401bc0
mov eax, dword [ebp + 0xa0]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
jne 0x465bcd
mov ecx, dword [esp + 0x4c]
push ebx
push ecx
call dword [0x4974a8]
mov ebx, eax
push ebx
mov dword [esp + 0x30], ebx
call fcn.0048b664
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4659e8
xor eax, eax
jmp 0x4659f0
mov eax, dword [ebp + 0x24]
sub eax, ecx
sar eax, 4
test eax, eax
jle 0x465b39
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
mov edx, dword [0x497530]
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 0x20]
push edx
add eax, edi
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00402010
mov edx, dword [esp + 0x38]
xor edi, edi
mov eax, edx
test eax, eax
mov dword [esp + 0x28], eax
jle 0x465aff
mov eax, dword [esp + 0x34]
cmp edx, edi
jb 0x465a71
test eax, eax
je 0x465a71
mov cl, byte [eax - 1]
test cl, cl
je 0x465a5c
cmp cl, 0xff
je 0x465a5c
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.00402210
mov eax, dword [esp + 0x34]
test eax, eax
je 0x465a68
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [eax + edi]
jmp 0x465a76
mov ecx, 0x497534
mov bl, byte [ecx]
lea esi, [edi + 1]
cmp edx, esi
jb 0x465ab4
test eax, eax
je 0x465ab4
mov cl, byte [eax - 1]
test cl, cl
je 0x465a9f
cmp cl, 0xff
je 0x465a9f
push 0
push edx
lea ecx, [esp + 0x38]
call fcn.00402210
mov eax, dword [esp + 0x34]
test eax, eax
je 0x465aab
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea ecx, [esi + eax]
jmp 0x465ab9
mov ecx, 0x497534
mov cl, byte [ecx]
cmp bl, 0xfe
je 0x465ae4
cmp cl, 0xfe
je 0x465ae4
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x28]
add edi, 2
mov dword [esp + 0x14], ebx
cmp edi, ecx
jl 0x465a38
jmp 0x465afb
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add ecx, edx
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x465b0f
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add ecx, 0x10
dec eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jne 0x465a04
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x60]
test eax, eax
je 0x465b44
add esi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add edi, eax
mov eax, dword [ebp + 0x80]
mov edx, eax
lea ecx, [edi + eax*4]
add edx, ecx
mov ecx, dword [esp + 0x20]
and ecx, 0x80000001
mov dword [ebp + 0x88], edx
jns 0x465b6e
dec ecx
or ecx, 0xfffffffe
inc ecx
cmp ecx, 1
jne 0x465b7e
lea edx, [eax + esi]
mov dword [ebp + 0x8c], edx
jmp 0x465b87
lea ecx, [eax + esi]
mov dword [ebp + 0x8c], ecx
mov edx, dword [ebp + 0xa4]
push ebx
mov dword [ebp + 0xa0], 1
lea ecx, [edx + eax]
mov edx, dword [ebp + 0xa8]
add eax, edx
mov dword [ebp + 0x90], ecx
mov dword [ebp + 0x94], eax
add eax, esi
mov dword [ebp + 0x9c], eax
mov eax, dword [esp + 0x54]
add ecx, edi
push eax
mov dword [ebp + 0x98], ecx
call dword [0x4974ac]
xor esi, esi
pop ebx
mov ecx, dword [esp + 0x30]
pop edi
cmp ecx, esi
pop esi
pop ebp
je 0x465c03
mov al, byte [ecx - 1]
test al, al
je 0x465bf9
cmp al, 0xff
je 0x465bf9
dec al
mov byte [ecx - 1], al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc
dec ecx
push ecx
call fcn.00485136
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0xc