Function at 0x402b80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428cba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x28]
cmp edi, eax
mov dword [esp + 0x20], 0
jl 0x402d80
lea ebx, [edi + 1]
test ebx, ebx
jne 0x402bfb
mov esi, dword [ebp + 4]
test esi, esi
je 0x402bee
mov ecx, eax
dec eax
test ecx, ecx
je 0x402bdb
lea ebx, [eax + 1]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10
dec ebx
jne 0x402bcd
mov eax, dword [ebp + 4]
push eax
call fcn.0041f473
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x402d80
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x402c5d
mov edi, ebx
shl edi, 4
push edi
call fcn.0041f44a
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 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, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x402c43
mov ecx, esi
call fcn.00402420
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x402c2f
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x402d7c
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x402ce3
cmp eax, ebx
jge 0x402cc9
mov edx, ebx
sub edx, eax
shl eax, 4
add eax, ecx
mov ecx, edx
shl ecx, 4
mov esi, ecx
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], edi
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 0x402cbd
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 2
je 0x402cae
mov ecx, esi
call fcn.00402420
add esi, 0x10
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x402c9a
mov edi, dword [esp + 0x28]
mov dword [ebp + 8], ebx
jmp 0x402d80
jle 0x402cc1
mov edx, ebx
sub eax, ebx
shl edx, 4
add edx, ecx
push eax
push edx
call fcn.00402de0
mov dword [ebp + 8], ebx
jmp 0x402d80
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x402d0e
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x402d01
mov ecx, 4
jmp 0x402d0e
cmp ecx, 0x400
jle 0x402d0e
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x402d1d
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
shl eax, 4
push eax
call fcn.0041f44a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 4
mov edx, eax
mov eax, ecx
mov edi, edx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x14], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov ecx, ebx
sub ecx, eax
shl eax, 4
add eax, edx
push ecx
push eax
call fcn.00402e10
mov eax, dword [ebp + 4]
push eax
call fcn.0041f473
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], edx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
mov edi, dword [esp + 0x28]
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x30]
shl edi, 4
add edi, esi
push ecx
mov esi, edi
lea ecx, [esi + 4]
call fcn.0041f090
lea edx, [esp + 0x34]
lea ecx, [esi + 8]
push edx
call fcn.0041f090
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x2c]
mov dword [esi + 0xc], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.004024c0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14