Function at 0x503000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cd139
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 esi, dword [esp + 0x28]
cmp esi, eax
mov dword [esp + 0x20], 0
jl 0x5031b6
lea ebx, [esi + 1]
test ebx, ebx
jne 0x50307c
mov edi, dword [ebp + 4]
test edi, edi
je 0x50306f
mov ecx, eax
dec eax
test ecx, ecx
je 0x50305c
lea ebx, [eax + 1]
push 0
mov ecx, edi
call fcn.005032b0
add edi, 0x40
dec ebx
jne 0x50304d
mov eax, dword [ebp + 4]
push eax
call fcn.0058ed21
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x5031b6
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x5030de
mov edi, ebx
shl edi, 6
push edi
call fcn.0058ecf8
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 0x5030c4
mov ecx, esi
call fcn.00429410
add esi, 0x40
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x5030b0
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x5031b2
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jg 0x50311b
cmp eax, ebx
jge 0x503101
mov edx, ebx
sub edx, eax
shl eax, 6
add eax, ecx
push edx
push eax
call fcn.005032d0
mov dword [ebp + 8], ebx
jmp 0x5031b6
jle 0x503113
sub eax, ebx
push eax
mov eax, ebx
shl eax, 6
add eax, ecx
push eax
call fcn.00503280
mov dword [ebp + 8], ebx
jmp 0x5031b6
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x503146
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x503139
mov ecx, 4
jmp 0x503146
cmp ecx, 0x400
jle 0x503146
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebx, eax
mov dword [esp + 0x10], eax
jl 0x503155
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
shl ecx, 6
push ecx
call fcn.0058ecf8
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 6
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], eax
sub edx, ecx
shl ecx, 6
add ecx, eax
push edx
push ecx
call fcn.005032d0
mov eax, dword [ebp + 4]
push eax
call fcn.0058ed21
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov esi, dword [esp + 0x28]
mov ebx, dword [ebp + 4]
lea edx, [esp + 0x2c]
shl esi, 6
add esi, ebx
push edx
mov ecx, esi
call fcn.00593814
lea eax, [esp + 0x30]
lea ecx, [esi + 4]
push eax
call fcn.00593814
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 8]
call fcn.00593814
mov edx, dword [esp + 0x38]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x48]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x38], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], 3
call fcn.005936db
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 2
call fcn.005936db
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.005936db
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x44