Function at 0x40fa10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41aa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x38]
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebp
call fcn.00410010
mov edi, dword [esi]
mov edx, dword [0x420da4]
cmp edi, edx
mov dword [esp + 0x10], esi
jne 0x40fa70
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 4]
cmp dword [eax + 4], esi
jne 0x40faf1
mov dword [eax + 4], ecx
jmp 0x40faff
mov eax, dword [esi + 8]
cmp eax, edx
jne 0x40fa7b
mov ecx, edi
jmp 0x40fa52
mov ecx, dword [eax]
cmp ecx, edx
je 0x40fa89
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x40fa81
mov ecx, dword [eax + 8]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x40fa52
mov dword [edi + 4], eax
mov edx, dword [esi]
mov dword [eax], edx
mov edx, dword [esi + 8]
cmp eax, edx
jne 0x40faa7
mov dword [ecx + 4], eax
jmp 0x40fabe
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 4]
mov dword [edx], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov edx, dword [esi + 8]
mov dword [edx + 4], eax
mov edx, dword [ebp + 4]
cmp dword [edx + 4], esi
jne 0x40facb
mov dword [edx + 4], eax
jmp 0x40fad9
mov edx, dword [esi + 4]
cmp dword [edx], esi
jne 0x40fad6
mov dword [edx], eax
jmp 0x40fad9
mov dword [edx + 8], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x10], esi
mov dword [eax + 4], edx
mov edi, dword [esi + 0x2c]
mov edx, dword [eax + 0x2c]
mov dword [eax + 0x2c], edi
mov dword [esi + 0x2c], edx
jmp 0x40fb5a
mov eax, dword [esi + 4]
cmp dword [eax], esi
jne 0x40fafc
mov dword [eax], ecx
jmp 0x40faff
mov dword [eax + 8], ecx
mov ebx, dword [ebp + 4]
cmp dword [ebx], esi
jne 0x40fb2c
mov edi, dword [0x420da4]
mov eax, dword [esi + 8]
cmp eax, edi
jne 0x40fb1a
mov eax, dword [esi + 4]
mov dword [ebx], eax
jmp 0x40fb2c
mov eax, dword [ecx]
mov edx, ecx
cmp eax, edi
je 0x40fb2a
mov edx, eax
mov eax, dword [edx]
cmp eax, edi
jne 0x40fb22
mov dword [ebx], edx
mov ebx, dword [ebp + 4]
cmp dword [ebx + 8], esi
jne 0x40fb5a
mov edi, dword [0x420da4]
mov eax, dword [esi]
cmp eax, edi
jne 0x40fb45
mov edx, dword [esi + 4]
jmp 0x40fb57
mov eax, dword [ecx + 8]
mov edx, ecx
cmp eax, edi
je 0x40fb57
mov edx, eax
mov eax, dword [edx + 8]
cmp eax, edi
jne 0x40fb4e
mov dword [ebx + 8], edx
mov eax, dword [esp + 0x10]
mov ebx, 1
cmp dword [eax + 0x2c], ebx
jne 0x40fe1d
mov edx, dword [ebp + 4]
cmp ecx, dword [edx + 4]
je 0x40fe16
cmp dword [ecx + 0x2c], ebx
jne 0x40fe16
mov eax, dword [ecx + 4]
cmp ecx, dword [eax]
jne 0x40fc06
mov eax, dword [eax + 8]
xor ebp, ebp
cmp dword [eax + 0x2c], ebp
jne 0x40fbe3
mov dword [eax + 0x2c], ebx
mov eax, dword [ecx + 4]
mov dword [eax + 0x2c], ebp
mov eax, dword [ecx + 4]
mov edx, dword [eax + 8]
mov esi, dword [edx]
mov dword [eax + 8], esi
mov esi, dword [edx]
cmp esi, dword [0x420da4]
je 0x40fbb3
mov dword [esi + 4], eax
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 4]
cmp eax, dword [esi + 4]
jne 0x40fbca
mov dword [esi + 4], edx
jmp 0x40fbd8
mov esi, dword [eax + 4]
cmp eax, dword [esi]
jne 0x40fbd5
mov dword [esi], edx
jmp 0x40fbd8
mov dword [esi + 8], edx
mov dword [edx], eax
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
mov edx, dword [eax]
cmp dword [edx + 0x2c], ebx
jne 0x40fc90
mov edx, dword [eax + 8]
cmp dword [edx + 0x2c], ebx
jne 0x40fc90
mov dword [eax + 0x2c], ebp
mov ecx, dword [ecx + 4]
mov ebp, dword [esp + 0x14]
jmp 0x40fc7a
mov eax, dword [eax]
xor edi, edi
cmp dword [eax + 0x2c], edi
jne 0x40fc5d
mov dword [eax + 0x2c], ebx
mov eax, dword [ecx + 4]
mov dword [eax + 0x2c], edi
mov eax, dword [ecx + 4]
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov dword [eax], esi
mov esi, dword [edx + 8]
cmp esi, dword [0x420da4]
je 0x40fc30
mov dword [esi + 4], eax
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [ebp + 4]
cmp eax, dword [esi + 4]
jne 0x40fc43
mov dword [esi + 4], edx
jmp 0x40fc52
mov esi, dword [eax + 4]
cmp eax, dword [esi + 8]
jne 0x40fc50
mov dword [esi + 8], edx
jmp 0x40fc52
mov dword [esi], edx
mov dword [edx + 8], eax
mov dword [eax + 4], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 8]
cmp dword [edx + 0x2c], ebx
jne 0x40fd5c
mov edx, dword [eax]
cmp dword [edx + 0x2c], ebx
jne 0x40fd5c
mov dword [eax + 0x2c], edi
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + 4]
cmp ecx, dword [eax + 4]
jne 0x40fb78
xor ebp, ebp
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
mov edx, dword [eax + 8]
cmp dword [edx + 0x2c], ebx
jne 0x40fce7
mov edx, dword [eax]
mov dword [edx + 0x2c], ebx
mov edx, dword [eax]
mov dword [eax + 0x2c], ebp
mov esi, dword [edx + 8]
mov dword [eax], esi
mov esi, dword [edx + 8]
cmp esi, dword [0x420da4]
je 0x40fcb5
mov dword [esi + 4], eax
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 4]
cmp eax, dword [esi + 4]
jne 0x40fccc
mov dword [esi + 4], edx
jmp 0x40fcdb
mov esi, dword [eax + 4]
cmp eax, dword [esi + 8]
jne 0x40fcd9
mov dword [esi + 8], edx
jmp 0x40fcdb
mov dword [esi], edx
mov dword [edx + 8], eax
mov dword [eax + 4], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 4]
mov dword [edx + 0x2c], ebx
mov eax, dword [eax + 8]
mov dword [eax + 0x2c], ebx
mov eax, dword [ecx + 4]
mov edx, dword [eax + 8]
mov esi, dword [edx]
mov dword [eax + 8], esi
mov esi, dword [edx]
cmp esi, dword [0x420da4]
je 0x40fd14
mov dword [esi + 4], eax
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 4]
cmp eax, dword [esi + 4]
jne 0x40fd36
mov dword [esi + 4], edx
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
mov esi, dword [eax + 4]
cmp eax, dword [esi]
jne 0x40fd4c
mov dword [esi], edx
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
mov dword [esi + 8], edx
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
mov edx, dword [eax]
cmp dword [edx + 0x2c], ebx
jne 0x40fdac
mov edx, dword [eax + 8]
mov dword [edx + 0x2c], ebx
mov edx, dword [eax + 8]
mov dword [eax + 0x2c], edi
mov esi, dword [edx]
mov dword [eax + 8], esi
mov esi, dword [edx]
cmp esi, dword [0x420da4]
je 0x40fd81
mov dword [esi + 4], eax
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [ebp + 4]
cmp eax, dword [esi + 4]
jne 0x40fd94
mov dword [esi + 4], edx
jmp 0x40fda2
mov esi, dword [eax + 4]
cmp eax, dword [esi]
jne 0x40fd9f
mov dword [esi], edx
jmp 0x40fda2
mov dword [esi + 8], edx
mov dword [edx], eax
mov dword [eax + 4], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov edx, dword [ecx + 4]
mov edx, dword [edx + 0x2c]
mov dword [eax + 0x2c], edx
mov edx, dword [ecx + 4]
mov dword [edx + 0x2c], ebx
mov eax, dword [eax]
mov dword [eax + 0x2c], ebx
mov eax, dword [ecx + 4]
mov edx, dword [eax]
mov esi, dword [edx + 8]
mov dword [eax], esi
mov esi, dword [edx + 8]
cmp esi, dword [0x420da4]
je 0x40fdd8
mov dword [esi + 4], eax
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [ebp + 4]
cmp eax, dword [esi + 4]
jne 0x40fdf6
mov dword [esi + 4], edx
mov dword [edx + 8], eax
mov dword [eax + 4], edx
xor ebp, ebp
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
mov esi, dword [eax + 4]
cmp eax, dword [esi + 8]
jne 0x40fe0e
mov dword [esi + 8], edx
mov dword [edx + 8], eax
mov dword [eax + 4], edx
xor ebp, ebp
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
mov dword [esi], edx
mov dword [edx + 8], eax
mov dword [eax + 4], edx
xor ebp, ebp
mov dword [ecx + 0x2c], ebx
jmp 0x40fe1f
xor ebp, ebp
mov ecx, dword [esp + 0x10]
lea edi, [ecx + 0xc]
mov dword [esp + 0x20], edi
mov edx, dword [edi + 0x14]
lea esi, [edi + 0x10]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebp
call fcn.0040ff30
mov ecx, esi
call fcn.0040ff20
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040ff30
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
call fcn.0040c170
mov ecx, dword [esi + 4]
push ebx
push ecx
mov ecx, esi
call fcn.0040ff10
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov eax, dword [0x420d98]
dec eax
mov dword [0x420d98], eax
jne 0x40fe9e
mov eax, dword [0x420d9c]
mov dword [0x420d9c], ebp
cmp eax, ebp
je 0x40fe9e
push ebx
push eax
mov ecx, esi
call fcn.0040ff10
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x40fec2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40feb9
cmp al, 0xff
je 0x40feb9
dec al
mov byte [ecx], al
jmp 0x40fec2
push ecx
call fcn.0040cf70
add esp, 4
mov edx, dword [esp + 0x10]
mov dword [edi + 4], ebp
push edx
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
call fcn.0040cf70
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax + 0xc]
pop edi
dec ecx
pop esi
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8