Function at 0x4514e0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x451a5f
sub esp, 0x3c
mov eax, dword [esp + 0x44]
test eax, eax
setbe cl
mov edx, dword [esp + 0x48]
test edx, edx
sete bl
xchg ebp, ebx
setl bl
xchg ebp, ebx
and ecx, ebx
or ecx, ebp
test cl, cl
jne 0x451a48
mov ecx, dword [esp + 0x50]
test ecx, ecx
jl 0x451a32
mov eax, dword [esp + 0x40]
test byte [eax], al
lea ecx, [eax + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp], ecx
call fcn.00401fa0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
cmp eax, 3
ja 0x4519e3
cmp eax, 1
jbe 0x4518cb
cmp eax, 2
jne 0x451576
mov eax, dword [0xaccb54]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00467080
jmp 0x45152a
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x78]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 6
call fcn.00401fc0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4515ee
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x45152a
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x45152a
mov dword [eax + 8], 0xfffffade
jmp 0x45152a
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
test byte [ecx], al
add ecx, 0x13c8
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
call fcn.004020b0
xor eax, eax
mov ecx, dword [esp + 0x28]
xor edx, edx
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x40]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x4c]
mov dword [ebp + 0xc], ebx
mov ebx, dword [0xaec8c0]
test ebx, ebx
jne 0x4518b6
mov ebx, dword [esp + 0x54]
mov dword [ebp + 0x14], ebx
mov ebx, dword [esp + 0x58]
mov dword [ebp + 0x18], ebx
mov ebx, dword [0xaec8c0]
test ebx, ebx
jne 0x4518a1
mov ebx, dword [esp + 0x5c]
mov dword [ebp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x13], dl
mov ebx, dword [esp + 0x60]
mov dword [ebp + 0x20], ebx
test al, al
jne 0x4517d1
mov eax, dword [esp + 0x48]
mov dword [ebp + 0x28], eax
mov ebx, dword [esp + 0x44]
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 + 0x48]
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 0x4517c7
mov edx, 7
mov ebp, dword [ebp]
mov esi, dword [esp + 0x14]
cmp esi, 7
jne 0x4517c0
mov esi, 0xffffffff
mov dword [esp + 0x18], edx
cmp edx, 7
je 0x451788
test esi, esi
jne 0x45176a
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 6
mov dword [esp + 8], edx
call fcn.00401fc0
movzx eax, byte [esp + 0xc]
test al, al
je 0x451763
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x45175a
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x451751
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x18]
cmp eax, 7
je 0x45173b
movzx eax, byte [esp + 0x13]
mov byte [esp + 0x64], al
add esp, 0x3c
ret
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0043dac0
jmp 0x45172e
mov eax, dword [esp + 0x18]
cmp eax, 7
jmp 0x45172c
mov eax, dword [esp + 0x18]
cmp eax, 7
jmp 0x45172c
call fcn.004533f0
jmp 0x4516f7
test byte [ebp], al
lea eax, [ebp + 0x13c4]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.004020b0
mov edx, dword [esp + 0x18]
jmp 0x4516d6
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
call fcn.00452d30
mov eax, dword [esp + 0x1c]
lea esi, [eax + 1]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
jmp 0x4516ce
xor esi, esi
jmp 0x4516c1
mov edx, 8
jmp 0x4516ac
mov eax, dword [esp + 0x48]
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0x44]
mov dword [ebp + 4], ecx
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 0x54]
mov dword [esp + 0x34], edx
test byte [edx], al
lea ebx, [edx + 0x13b0]
mov dword [esp + 0x30], ebx
nop
mov dword [esp], ebx
call fcn.0040a0b0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00450d30
nop
nop
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0040a2c0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], 6
mov dword [esp + 8], 1
call fcn.00401fc0
movzx eax, byte [esp + 0xc]
test al, al
je 0x45189a
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x451881
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x451881
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0043dac0
jmp 0x45172e
call fcn.004533f0
jmp 0x451852
lea edi, [ebp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x5c]
call fcn.00466130
mov eax, ebx
jmp 0x451657
lea edi, [ebp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x54]
call fcn.00466130
mov eax, ebx
jmp 0x45163b
test eax, eax
jne 0x45195b
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x78]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 6
call fcn.00401fc0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x45194b
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x45152a
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x45152a
mov dword [eax + 8], 0xfffffade
jmp 0x45152a
mov eax, 1
mov ecx, dword [esp + 0x20]
xor edx, edx
jmp 0x451614
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x18]
nop
inc dword [edx + 0x78]
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 6
call fcn.00401fc0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4519d3
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x45152a
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x45152a
mov dword [eax + 8], 0xfffffade
jmp 0x45152a
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, 1
jmp 0x451614
cmp eax, 5
ja 0x4519f6
cmp eax, 4
je 0x45155e
jmp 0x4518d3
cmp eax, 6
je 0x451a17
cmp eax, 8
jbe 0x45195b
cmp eax, 9
je 0x45155e
call fcn.004533f0
jmp 0x45152a
mov eax, dword [0xaccb54]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00467080
jmp 0x45152a
lea eax, [0x815132]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00435b90
lea eax, [0x811900]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.00435b90
nop
call fcn.00464bd0
jmp fcn.004514e0