Function at 0x4583f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x564248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
push 6
push 0x59fe68
lea ecx, [esp + 0x14]
call fcn.005318a0
mov edi, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x26], eax
mov cl, 0x11
mov word [esp + 0x2a], ax
mov dword [esp + 0x38], 0
mov byte [esp + 0x2c], al
mov eax, edi
and eax, 0xff
mov byte [esp + 0x14], cl
sub eax, 0
mov byte [esp + 0x15], 1
mov byte [esp + 0x16], 2
mov byte [esp + 0x17], 3
mov byte [esp + 0x18], 6
mov byte [esp + 0x19], 7
mov byte [esp + 0x1a], 8
mov byte [esp + 0x1b], 9
mov byte [esp + 0x1c], 0xe
mov byte [esp + 0x1d], 0x10
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], 0x14
mov byte [esp + 0x20], 0x15
mov byte [esp + 0x21], 0x16
mov byte [esp + 0x22], 0x17
mov byte [esp + 0x23], 0x18
mov byte [esp + 0x24], 0x19
mov byte [esp + 0x25], 0x1a
je 0x4586d9
dec eax
jne 0x458713
mov al, byte [esi + 0x72]
cmp al, 0xfa
jne 0x4584ef
mov ebx, dword [esp + 0x44]
mov esi, 1
push edi
push 4
lea ecx, [esp + 0x14]
call fcn.00531ad0
push esi
push 5
lea ecx, [esp + 0x14]
call fcn.00531ad0
mov eax, dword [ebx + 8]
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00404e90
inc esi
cmp si, 0x16
jle 0x4584b9
jmp 0x458713
cmp al, 0xfb
jne 0x458713
cmp byte [esi + 0x73], 0x81
je 0x45854d
xor ax, ax
mov al, cl
cmp ax, 1
jl 0x458713
mov edi, dword [esp + 0x44]
lea esi, [esp + 0x15]
movsx ebx, ax
push 2
push 4
lea ecx, [esp + 0x14]
call fcn.00531ad0
mov dl, byte [esi]
lea ecx, [esp + 0xc]
push edx
push 5
call fcn.00531ad0
mov eax, dword [edi + 8]
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
mov ecx, edi
call fcn.00404e90
inc esi
dec ebx
jne 0x458517
jmp 0x458713
mov esi, dword [esp + 0x44]
push ebp
mov ebp, 1
mov dword [esp + 0x44], ebp
mov ebx, 4
push 2
push ebx
lea ecx, [esp + 0x18]
call fcn.00531ad0
push ebp
push 5
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x45864b
mov edx, dword [esi + 4]
test edx, edx
je 0x4585a1
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4585a6
mov ecx, 1
test edx, edx
jne 0x4585ae
xor eax, eax
jmp 0x4585b3
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x4585bf
xor eax, eax
shl eax, 2
push eax
call fcn.00556a96
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x48], eax
mov ebx, eax
je 0x4585ec
push ebp
push ebx
call fcn.00405410
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x4585d8
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebx, 4
push ebx
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, esi
lea eax, [edi + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebp, dword [esp + 0x44]
lea ecx, [edi + eax*4 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 4], edi
jmp 0x4586c7
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x458697
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x4586c4
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebx
inc ebp
cmp bp, 0x1c
mov dword [esp + 0x44], ebp
jle 0x45855b
pop ebp
jmp 0x458713
mov ebx, dword [esp + 0x44]
mov esi, 1
push edi
push 4
lea ecx, [esp + 0x14]
call fcn.00531ad0
push esi
push 5
lea ecx, [esp + 0x14]
call fcn.00531ad0
mov eax, dword [ebx + 8]
lea ecx, [esp + 0xc]
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00404e90
inc esi
cmp si, 4
jle 0x4586e2
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00531940
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov ax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8