Function at 0x404a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41efea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 8]
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, eax
mov dword [esp + 0x20], edi
jl 0x404c70
inc ebp
cmp ebp, edi
jne 0x404ad0
mov esi, dword [ebx + 4]
cmp esi, edi
je 0x404ac5
mov ecx, eax
dec eax
test ecx, ecx
je 0x404ab6
lea ebp, [eax + 1]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx]
add esi, 0x2c
dec ebp
jne 0x404aa9
mov eax, dword [ebx + 4]
push eax
call fcn.00418184
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x404c70
mov ecx, dword [ebx + 4]
cmp ecx, edi
jne 0x404b39
lea eax, [ebp + ebp*4]
lea edi, [ebp + eax*2]
shl edi, 2
push edi
call fcn.0041815b
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebx + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebp]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x404b1f
mov ecx, esi
call fcn.00404e00
add esi, 0x2c
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x404b0b
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x404c70
mov esi, dword [ebx + 0xc]
cmp ebp, esi
jg 0x404bc9
cmp eax, ebp
jge 0x404bab
mov edx, ebp
lea esi, [eax + eax*4]
sub edx, eax
lea eax, [eax + esi*2]
lea edi, [ecx + eax*4]
lea ecx, [edx + edx*4]
xor eax, eax
mov dword [esp + 0x10], edi
lea ecx, [edx + ecx*2]
shl ecx, 2
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x404bc1
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 2
je 0x404b94
mov ecx, esi
call fcn.00404e00
add esi, 0x2c
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x404b80
mov dword [ebx + 8], ebp
jmp 0x404c70
jle 0x404bc1
sub eax, ebp
lea edx, [ebp + ebp*4]
push eax
lea eax, [ebp + edx*2]
lea ecx, [ecx + eax*4]
push ecx
call fcn.00404d10
mov dword [ebx + 8], ebp
jmp 0x404c70
mov ecx, dword [ebx + 0x10]
cmp ecx, edi
jne 0x404bf4
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x404be7
mov ecx, 4
jmp 0x404bf4
cmp ecx, 0x400
jle 0x404bf4
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebp, eax
jge 0x404c01
mov dword [esp + 0x10], eax
jmp 0x404c07
mov dword [esp + 0x10], ebp
mov eax, ebp
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.0041815b
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
add esp, 4
lea edx, [ecx + ecx*4]
mov dword [esp + 0x14], eax
lea ecx, [ecx + edx*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
sub edx, ecx
push edx
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx*4]
push edx
call fcn.00404d40
mov eax, dword [ebx + 4]
push eax
call fcn.00418184
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 4]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [esp + 0x30]
push edx
lea esi, [ecx + eax*4]
lea ecx, [esi + 4]
call fcn.00418507
lea eax, [esp + 0x34]
lea ecx, [esi + 8]
push eax
call fcn.00418507
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x2c]
mov dword [esi + 0x28], edx
call fcn.00404ef0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x30