Function at 0x4585a8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push ebx
push esi
lea eax, [ebp - 0xc0]
push edi
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x640061
add edx, 4
mov dword [edx], 0x610076
add edx, 4
mov dword [edx], 0x690070
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x64002e
add edx, 4
mov dword [edx], 0x6c006c
add edx, 4
and dword [edx], 0
add edx, 4
mov dword [edx], 0x690077
add edx, 4
mov dword [edx], 0x69006e
add edx, 4
mov dword [edx], 0x65006e
add edx, 4
mov dword [edx], 0x2e0074
add edx, 4
mov dword [edx], 0x6c0064
add edx, 4
mov dword [edx], 0x6c
add edx, 8
mov dword [edx], 0x730077
add edx, 4
mov dword [edx], 0x5f0032
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x64002e
add edx, 4
mov dword [edx], 0x6c006c
add edx, 4
and dword [edx], 0
add edx, 8
mov dword [edx], 0x65006b
add edx, 4
mov dword [edx], 0x6e0072
add edx, 4
mov dword [edx], 0x6c0065
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x64002e
add edx, 4
mov dword [edx], 0x6c006c
add edx, 4
and dword [edx], 0
mov edi, dword [ebp + 8]
imul edi, edi, 0x1c
lea edi, [ebp + edi - 0xc0]
mov eax, edi
mov dword [ebp - 0x20], edi
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4586b3
sub eax, ecx
sar eax, 1
inc eax
movzx esi, ax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0x78740534
push eax
call fcn.0044f2fd
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4586f0
xor eax, eax
jmp 0x458870
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [esi + esi - 2]
mov word [ebp - 0x14], ax
lea eax, [esi + esi]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
and eax, 0
push eax
push eax
call dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x4586e9
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044f2fd
xor esi, esi
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp + 0x10], esi
je 0x458836
push 0x52ac19c
mov dword [ebp - 8], esi
call fcn.0046b2b6
push eax
call fcn.0044f2fd
pop ecx
pop ecx
cmp eax, esi
je 0x458762
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
call eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [edx], 0x73005c
add edx, 4
mov dword [edx], 0x730079
add edx, 4
mov dword [edx], 0x650074
add edx, 4
mov dword [edx], 0x72006d
add edx, 4
mov dword [edx], 0x6f006f
add edx, 4
mov dword [edx], 0x5c0074
add edx, 4
cmp dword [ebp - 8], esi
je 0x4587d2
mov dword [edx], 0x790053
add edx, 4
mov dword [edx], 0x570073
add edx, 4
mov dword [edx], 0x57004f
add edx, 4
mov dword [edx], 0x340036
add edx, 4
mov dword [edx], 0x5c
jmp 0x4587fc
mov dword [edx], 0x790073
add edx, 4
mov dword [edx], 0x740073
add edx, 4
mov dword [edx], 0x6d0065
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x5c
push 0xa
pop ecx
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x2c8]
rep movsd dword es:[edi], dword [esi]
push 7
pop ecx
push dword [ebp + 0x10]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x20]
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x2c8]
lea edi, [ebp - 0x29e]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0044f0cc
add esp, 0x10
test eax, eax
je 0x458836
mov ebx, eax
test ebx, ebx
je 0x45886e
cmp dword [ebp + 8], 3
jne 0x45886e
mov eax, dword [ebx]
cmp eax, 0x6c64746e
je 0x458850
cmp eax, 0x4c44544e
jne 0x45886e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
add ebx, 6
push ebx
push eax
mov dword [ebp - 4], eax
call fcn.0044efe2
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret