Function at 0x504280
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5673f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5be410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x5765b8
lea ecx, [edi + 0xc]
call dword [0x5756d4]
mov word [edi + 0x28], 0
mov ecx, edi
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x44]
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x50]
mov dword [edi + 0x54], eax
call fcn.004ff2d0
test al, al
jne 0x5042f8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x18], 0
push 0x148
mov dword [ebp - 0x1c], ebx
call fcn.005445ec
push 0x148
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x24], esi
push 0x5b4
mov dword [ebp - 4], ebx
call fcn.005445ec
push 0x5b4
push ebx
push eax
mov dword [ebp - 0x10], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
push 0xe6a0
mov byte [ebp - 4], 1
call fcn.005445ec
mov dword [ebp - 0x14], eax
push 0x148
push ebx
push esi
mov byte [ebp - 4], 2
call sub.VCRUNTIME140.dll_memset
push 0x5b4
push ebx
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memset
push 0xe6a0
push ebx
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x30]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x2c]
add esp, 0x48
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x50448a
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [edi + 0x2c]
movzx edx, word [esi + 4]
movzx eax, word [ecx + eax + 4]
add eax, ebx
cmp eax, 0x16
jle 0x504404
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x1c]
call fcn.004ff860
test eax, eax
jne 0x50446e
mov eax, dword [ebp - 0x18]
xor ebx, ebx
push 0x148
push ebx
push esi
mov dword [ebp - 0x1c], eax
call sub.VCRUNTIME140.dll_memset
push 0x5b4
push ebx
push dword [ebp - 0x10]
call sub.VCRUNTIME140.dll_memset
push 0xe6a0
push ebx
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
jmp 0x50444a
mov byte [esi], 1
movzx eax, word [edi + 0x26]
mov word [esi + 2], ax
mov eax, dword [edi + 0x2c]
inc dword [ebp - 0x18]
movzx eax, word [ecx + eax]
mov word [esi + edx*8 + 8], ax
mov eax, dword [edi + 0x2c]
movzx eax, word [ecx + eax + 2]
mov word [esi + edx*8 + 0xa], ax
mov eax, dword [edi + 0x2c]
mov eax, dword [ecx + eax + 8]
mov dword [esi + edx*8 + 0xc], eax
inc word [esi + 4]
mov eax, dword [edi + 0x2c]
movzx eax, word [ecx + eax + 4]
add ebx, eax
add ecx, 0x30
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0x30]
mov eax, 0x2aaaaaab
sub ecx, dword [edi + 0x2c]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x18], eax
jae 0x504475
mov ecx, dword [ebp - 0x20]
jmp 0x5043a3
mov edi, 3
jmp 0x504490
test ebx, ebx
je 0x50448a
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x1c]
call fcn.004ff860
mov byte [edi + 0x28], 1
xor edi, edi
push 0xe6a0
push dword [ebp - 0x14]
call fcn.0054461c
push 0x5b4
push dword [ebp - 0x10]
call fcn.0054461c
push 0x148
push esi
call fcn.0054461c
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret