Function at 0x43af90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56b5bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x824
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 2
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x30]
imul eax, dword [esi + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0043a160
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x844]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x83c], edi
jle 0x43b02e
mov ebx, dword [esp + 0x848]
mov ebp, dword [esi + 4]
xor ecx, ecx
test ebp, ebp
jle 0x43b00a
movsx bp, byte [ecx + edx]
shl ebp, 6
mov word [eax], bp
mov ebp, dword [esi + 4]
add eax, 2
inc ecx
cmp ecx, ebp
jl 0x43aff4
mov ecx, dword [esi + 4]
mov ebp, dword [esi + 0xc]
add edx, ebx
cmp ecx, ebp
jge 0x43b026
mov word [eax], 0
mov ebp, dword [esi + 0xc]
add eax, 2
inc ecx
cmp ecx, ebp
jl 0x43b016
mov ecx, dword [esi + 8]
inc edi
cmp edi, ecx
jl 0x43afeb
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jge 0x43b059
mov edi, dword [esi + 0xc]
xor ecx, ecx
test edi, edi
jle 0x43b051
mov word [eax], 0
mov edi, dword [esi + 0xc]
add eax, 2
inc ecx
cmp ecx, edi
jl 0x43b041
mov ecx, dword [esi + 0x10]
inc edx
cmp edx, ecx
jl 0x43b038
mov edi, dword [esp + 0x84c]
test edi, edi
je 0x43b0a4
mov ebx, dword [esp + 0x850]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ebx
push edi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
call fcn.0043b1b0
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push ebx
push edi
push 0x20
push 1
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
push edx
call fcn.0043b5e0
add esp, 0x38
jmp 0x43b0c1
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0x20
push 1
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
call fcn.0043a3a0
add esp, 0x18
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x10]
mov ecx, dword [esi]
mov dword [esp + 0x18], edi
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
jle 0x43b180
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x28], 0
test ebx, ebx
jle 0x43b15a
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0x20
mov eax, edi
mov edx, 0x20
mov bp, word [eax]
add eax, 2
mov word [ecx], bp
add ecx, 2
dec edx
jne 0x43b108
mov eax, dword [esp + 0x24]
lea edi, [edi + ebx*2]
dec eax
mov dword [esp + 0x24], eax
jne 0x43b101
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push esi
push edx
mov ecx, edi
call fcn.00430760
mov eax, dword [esp + 0x28]
mov ebx, dword [esi + 0xc]
add edi, 0x10
add eax, 0x20
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x14]
add edi, 0x40
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
jl 0x43b0f5
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
shl eax, 6
add edi, eax
mov eax, dword [esp + 0x20]
add eax, 0x20
mov dword [esp + 0x18], edi
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x43b0e2
lea ecx, [esp + 0x2c]
mov dword [esp + 0x83c], 0xffffffff
call fcn.0043a1a0
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x830
ret 0x10