Function at 0x458510
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45890f
sub esp, 0x2c
mov eax, dword [esp + 0x38]
test eax, eax
setl cl
mov edx, dword [esp + 0x34]
test edx, edx
setbe bl
test eax, eax
xchg ebp, ebx
sete bl
xchg ebp, ebx
and ebx, ebp
or ebx, ecx
test bl, bl
jne 0x4588f8
mov ecx, dword [esp + 0x40]
test ecx, ecx
jl 0x4588e2
mov eax, dword [esp + 0x30]
test byte [eax], al
lea ecx, [eax + 0x2c]
mov dword [esp + 0x28], ecx
mov dword [esp], ecx
call fcn.00402380
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
cmp eax, 3
ja 0x4585d5
cmp eax, 1
jbe 0x4585cf
cmp eax, 2
je 0x458634
call fcn.0044c230
mov eax, dword [esp]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], 3
mov dword [esp + 8], 6
call fcn.004023c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x458694
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0044c250
jmp 0x45855c
test eax, eax
je 0x4585df
jmp 0x458648
cmp eax, 5
ja 0x458625
cmp eax, 4
je 0x458634
call fcn.0044c230
mov eax, dword [esp]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], 6
call fcn.004023c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4586c7
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0044c250
jmp 0x45855c
cmp eax, 6
je 0x45868a
cmp eax, 8
jbe 0x458648
cmp eax, 9
jne 0x45863e
call fcn.004385d0
jmp 0x45855c
call fcn.0045a190
jmp 0x45855c
call fcn.0044c230
mov eax, dword [esp]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], 6
call fcn.004023c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4586d4
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0044c250
jmp 0x45855c
call fcn.004385d0
jmp 0x45855c
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov dword [esp], ecx
call fcn.0044c320
mov eax, dword [esp + 4]
test byte [eax], al
add eax, 0x119c
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call fcn.00402460
xor eax, eax
mov ecx, dword [esp + 0x20]
xor edx, edx
jmp 0x4586df
mov eax, 1
mov ecx, dword [esp + 0x20]
xor edx, edx
jmp 0x4586df
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, 1
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x3c]
mov dword [ebp + 0xc], ebx
mov ebx, dword [0x611520]
test ebx, ebx
jne 0x458704
mov ebx, dword [esp + 0x44]
mov dword [ebp + 0x14], ebx
jmp 0x458714
lea edi, [ebp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x44]
call fcn.00468980
mov eax, ebx
mov ebx, dword [esp + 0x48]
mov dword [ebp + 0x18], ebx
mov ebx, dword [0x611520]
test ebx, ebx
jne 0x45872e
mov ebx, dword [esp + 0x4c]
mov dword [ebp + 0x1c], ebx
jmp 0x45873e
lea edi, [ebp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x4c]
call fcn.00468980
mov eax, ebx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x13], dl
mov ebx, dword [esp + 0x50]
mov dword [ebp + 0x20], ebx
test al, al
jne 0x458826
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x28], eax
mov ebx, dword [esp + 0x34]
mov dword [ebp + 0x24], ebx
cmp dword [ebp + 4], ebx
xchg esi, ebx
seta bl
xchg esi, ebx
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x38]
cmp edx, edi
sete dl
xchg edi, ebx
setl bl
xchg edi, ebx
and esi, edx
or esi, edi
xchg esi, eax
test al, al
xchg esi, eax
je 0x458791
mov edx, 7
jmp 0x458796
mov edx, 8
mov dword [esp + 0x18], edx
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.0044c320
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
cmp ecx, 7
jne 0x4587ce
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.00459b40
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 6
mov dword [esp + 8], ecx
call fcn.004023c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4587f4
call fcn.0045a190
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0044c250
mov eax, dword [esp + 0x18]
cmp eax, 7
jne 0x4588d5
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00443d00
jmp 0x4588d5
mov eax, dword [esp + 0x38]
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [ebp + 4], ecx
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x58]
mov dword [esp], edx
call fcn.0044c320
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
test byte [eax], al
lea ecx, [eax + 0x1188]
mov dword [esp + 0x24], ecx
mov dword [esp], ecx
call fcn.0040ae80
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00457db0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040b080
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], 6
mov dword [esp + 8], 1
call fcn.004023c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4588b5
call fcn.0045a190
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0044c250
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00443d00
movzx eax, byte [esp + 0x13]
mov byte [esp + 0x54], al
add esp, 0x2c
ret
lea eax, [0x513ddd]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.0043b160
lea eax, [0x51214a]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.0043b160
nop
call fcn.00467570
jmp fcn.00458510