Function at 0x409bc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b39c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x424404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ebx, [edi + 0x10]
mov dword [ebx], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x24], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x409c7c
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0x34]
lea ecx, [edi + 0x70]
mov byte [edi + 0x60], al
push 9
mov byte [ebp - 4], 5
mov byte [edi + 0x68], 9
call fcn.0040a270
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov edi, dword [ebx]
mov byte [ebp - 4], 6
mov byte [ebp - 0xd], 1
test ecx, ecx
jns 0x409cc5
mov eax, ecx
neg eax
cmp edx, eax
jae 0x409cc5
mov edx, ecx
mov esi, edi
mov eax, edx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x409ccf
add edx, ecx
mov eax, edx
shr eax, 5
lea esi, [edi + eax*4]
sub esi, edi
mov eax, 0x1f
sar esi, 2
and eax, edx
shl esi, 5
add esi, eax
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x20], esi
cmp eax, 1
jb 0x409ec2
mov edx, dword [ebx + 4]
add ecx, 0x20
sub edx, edi
shr ecx, 5
sar edx, 2
mov dword [ebp - 0x14], 0
cmp ecx, edx
jae 0x409d11
lea eax, [edi + ecx*4]
jmp 0x409d3d
jbe 0x409d40
mov eax, dword [ebx + 8]
sub eax, edi
sar eax, 2
cmp ecx, eax
lea eax, [ebp - 0x14]
jbe 0x409d2d
push eax
push ecx
mov ecx, ebx
call fcn.00403340
jmp 0x409d40
push ebx
push eax
sub ecx, edx
push ecx
push dword [ebx + 4]
call fcn.00403910
add esp, 0x10
mov dword [ebx + 4], eax
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x409d52
lea eax, [edx + 1]
mov dword [ebx + 0xc], eax
jmp 0x409e4e
mov esi, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
test edx, edx
jns 0x409d7f
mov eax, edx
neg eax
cmp ecx, eax
jae 0x409d7f
lea edi, [ecx + edx]
mov ecx, esi
mov eax, edi
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub ecx, eax
jmp 0x409d8a
lea edi, [ecx + edx]
mov eax, edi
shr eax, 5
lea ecx, [esi + eax*4]
mov dword [ebp - 0x14], ecx
and edi, 0x1f
xor ecx, ecx
mov dword [ebp - 0x1c], esi
add edx, 1
mov dword [ebx + 0xc], edx
jns 0x409dbb
mov eax, edx
neg eax
cmp ecx, eax
jae 0x409dbb
mov ecx, edx
mov ebx, esi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub ebx, eax
jmp 0x409dc5
add ecx, edx
mov eax, ecx
shr eax, 5
lea ebx, [esi + eax*4]
mov eax, dword [ebp - 0x24]
mov esi, 0x1f
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
and esi, ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040b710
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
mov ecx, esi
cmp dword [ebp - 0x24], edx
jne 0x409e01
cmp eax, edi
je 0x409e48
test edi, edi
je 0x409e08
dec edi
jmp 0x409e10
mov edi, 0x1f
sub edx, 4
test esi, esi
je 0x409e17
dec esi
jmp 0x409e1c
mov esi, 0x1f
test ecx, ecx
lea eax, [ebx - 4]
cmove ebx, eax
mov eax, 1
shlx eax, eax, edi
mov ecx, dword [ebx]
test dword [edx], eax
je 0x409e3e
bts ecx, esi
mov dword [ebx], ecx
mov eax, dword [ebp - 0x18]
jmp 0x409df6
btr ecx, esi
mov dword [ebx], ecx
mov eax, dword [ebp - 0x18]
jmp 0x409df6
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebx]
xor ecx, ecx
test esi, esi
jns 0x409e72
mov eax, esi
neg eax
cmp ecx, eax
jae 0x409e72
mov ecx, esi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x409e7c
add ecx, esi
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
lea eax, [ebp - 0xd]
and ecx, 0x1f
push eax
push 1
push ecx
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00405a00
mov ecx, dword [ebp + 0x30]
add esp, 0x14
test ecx, ecx
je 0x409eab
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 - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
mov ecx, ebx
call fcn.0040c5c0
int3