Function at 0x40f9f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eecc
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x44d100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov dword [ebp - 4], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
lea esi, [edx + 0x10]
mov dword [esi], 0
mov dword [ebp - 0x20], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
lea edi, [edx + 0x38]
mov dword [edx + 0x30], 0
mov byte [edx + 0x34], 0
mov dword [ebp - 0x30], edi
mov dword [edi + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40fab0
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov edx, dword [ebp - 0x2c]
mov dword [edi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edx + 0x68]
push 9
mov byte [ebp - 4], 5
mov byte [edx + 0x60], al
call fcn.0040f5e0
mov edi, dword [esi]
xor ecx, ecx
mov esi, dword [esi + 0xc]
mov byte [ebp - 4], 6
mov byte [ebp - 0x15], 1
test esi, esi
jns 0x40faf5
mov eax, esi
neg eax
cmp ecx, eax
jae 0x40faf5
mov ecx, esi
mov edx, edi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x40faff
add ecx, esi
mov eax, ecx
shr eax, 5
lea edx, [edi + eax*4]
sub edx, edi
and ecx, 0x1f
sar edx, 2
mov eax, 0x7fffffff
shl edx, 5
sub eax, esi
add edx, ecx
mov dword [ebp - 0x28], edx
cmp eax, 1
jb 0x40fd40
lea ecx, [esi + 0x20]
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x2c]
shr ecx, 5
mov esi, dword [esi + 0x14]
sub esi, edi
sar esi, 2
cmp ecx, esi
jae 0x40fb46
lea eax, [edi + ecx*4]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
jmp 0x40fb69
jbe 0x40fb66
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
sub eax, edi
sar eax, 2
cmp ecx, eax
lea eax, [ebp - 0x14]
jbe 0x40fb7f
push eax
push ecx
mov ecx, edx
call fcn.004093e0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx + 0xc]
test edi, edi
jne 0x40fb9d
lea eax, [edi + 1]
mov dword [ecx + 0xc], eax
mov ecx, edx
neg ecx
jmp 0x40fccc
push edx
push eax
mov eax, dword [ebp - 0x2c]
sub ecx, esi
push ecx
push dword [eax + 0x14]
call fcn.004097a0
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
jmp 0x40fb69
mov edx, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x10], edx
test edi, edi
jns 0x40fbc6
mov eax, edi
neg eax
cmp ecx, eax
jae 0x40fbc6
mov ecx, edi
mov esi, edx
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x40fbd0
add ecx, edi
mov eax, ecx
shr eax, 5
lea esi, [edx + eax*4]
mov eax, dword [ebp - 0x20]
inc edi
and ecx, 0x1f
mov dword [ebp - 0x1c], esi
xor edx, edx
mov dword [eax + 0xc], edi
test edi, edi
jns 0x40fc02
mov eax, edi
neg eax
cmp edx, eax
jae 0x40fc02
mov edx, edi
mov edi, dword [ebp - 0x10]
mov eax, edx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edi, eax
jmp 0x40fc0f
add edx, edi
mov edi, dword [ebp - 0x10]
mov eax, edx
shr eax, 5
lea edi, [edi + eax*4]
mov eax, dword [ebp - 0x28]
and edx, 0x1f
test eax, eax
jns 0x40fc3c
mov dword [ebp - 0x14], eax
xor esi, esi
neg dword [ebp - 0x14]
cmp esi, dword [ebp - 0x14]
jae 0x40fc3c
add eax, esi
mov dword [ebp - 0x24], eax
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub dword [ebp - 0x10], eax
jmp 0x40fc57
xor esi, esi
add eax, esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
shr eax, 5
lea esi, [esi + eax*4]
mov eax, dword [ebp - 0x28]
neg eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov eax, 0x1f
and eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x10], esi
jne 0x40fc71
cmp eax, ecx
je 0x40fcc6
test ecx, ecx
je 0x40fc78
dec ecx
jmp 0x40fc83
sub esi, 4
mov ecx, 0x1f
mov dword [ebp - 0x1c], esi
test edx, edx
je 0x40fc8a
dec edx
jmp 0x40fc8f
mov edx, 0x1f
cmp dword [ebp - 0x24], 0
lea eax, [edi - 4]
cmove edi, eax
mov eax, 1
mov dword [ebp - 0x24], edi
shl eax, cl
mov esi, dword [edi]
mov edi, dword [ebp - 0x1c]
test dword [edi], eax
je 0x40fcb9
mov edi, dword [ebp - 0x24]
bts esi, edx
mov dword [edi], esi
mov eax, dword [ebp - 0x30]
jmp 0x40fc62
mov edi, dword [ebp - 0x24]
btr esi, edx
mov dword [edi], esi
mov eax, dword [ebp - 0x30]
jmp 0x40fc62
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
xor eax, eax
test edx, edx
jns 0x40fcf0
cmp eax, ecx
jae 0x40fcf0
lea ecx, [eax + edx]
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x40fcfb
lea ecx, [eax + edx]
mov eax, ecx
shr eax, 5
lea esi, [esi + eax*4]
lea eax, [ebp - 0x15]
and ecx, 0x1f
push eax
push 1
push ecx
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0040b8c0
mov ecx, dword [ebp + 0x30]
add esp, 0x14
test ecx, ecx
je 0x40fd2a
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x30
call fcn.00414e90
int3