Function at 0x458e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cea48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x18], edi
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x30], esi
mov ax, word [edi]
xor ebp, ebp
cmp ax, si
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
je 0x459336
cmp ax, 0xff
push eax
ja 0x458e98
call fcn.004ac3e9
add esp, 4
test eax, eax
setne al
jmp 0x458ea6
call fcn.004ac3db
add esp, 4
neg eax
sbb al, al
inc al
test al, al
jne 0x4590cb
cmp esi, ebp
jge 0x4590c4
mov ecx, dword [ebx]
mov edi, ebp
sub edi, esi
mov edx, edi
mov eax, esi
call fcn.0046cec0
test al, al
je 0x4590c4
push edi
push esi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.00403640
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.00403e70
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458f0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x458f4a
mov ebp, dword [esp + 0xc]
cmp dword [ebp - 4], 1
jle 0x458f30
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov ebp, dword [esp + 0xc]
push ebp
call dword [0x5066e8]
cmp dword [ebp - 4], 1
jle 0x458f4a
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.00459380
mov ecx, dword [esp + 0x10]
inc ecx
cmp edi, 5
mov dword [esp + 0x10], ecx
jl 0x4590c0
mov eax, dword [0x533fec]
test eax, eax
je 0x4590c0
lea ecx, [edi - 1]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.00403640
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
call fcn.00403e70
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458fc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x459000
mov ebp, dword [esp + 0xc]
cmp dword [ebp - 4], 1
jle 0x458fe6
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov ebp, dword [esp + 0xc]
push ebp
call dword [0x5066e8]
cmp dword [ebp - 4], 1
jle 0x459000
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
push edx
push eax
mov eax, ebp
lea ecx, [esp + 0x14]
call fcn.00459380
mov edx, dword [esp + 0x10]
add edi, 0xfffffffe
push edi
push esi
lea ecx, [esp + 0x2c]
inc edx
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.00403640
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 3
call fcn.00403e70
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459065
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4590a7
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 4]
mov edi, 1
cmp eax, edi
jle 0x45908e
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov esi, dword [esp + 0xc]
push esi
call dword [0x5066e8]
cmp dword [esi - 4], edi
jle 0x4590a7
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, ebp
lea ecx, [esp + 0x14]
call fcn.00459380
inc dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea esi, [ebp + 1]
mov ax, word [edi + 2]
add edi, 2
inc ebp
test ax, ax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
jne 0x458e82
cmp esi, ebp
jge 0x459336
mov ebp, dword [ebx]
mov edi, dword [esp + 0x14]
lea ebp, [ebp + esi*2]
xor eax, eax
mov ax, word [ebp]
sub edi, esi
test ax, ax
mov dword [esp + 0x14], edi
je 0x459336
jmp 0x459110
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x459336
push eax
call fcn.004ac3cd
add esp, 4
test eax, eax
je 0x459143
mov edx, dword [esp + 0x14]
mov ax, word [ebp + 2]
add ebp, 2
dec edx
test ax, ax
mov dword [esp + 0x14], edx
jne 0x459110
jmp 0x459336
push edi
push esi
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.00403640
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 4
call fcn.00403e70
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4591c0
mov ebp, dword [esp + 0xc]
cmp dword [ebp - 4], 1
jle 0x4591a6
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov ebp, dword [esp + 0xc]
push ebp
call dword [0x5066e8]
cmp dword [ebp - 4], 1
jle 0x4591c0
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.00459380
mov ecx, dword [esp + 0x10]
inc ecx
cmp edi, 5
mov dword [esp + 0x10], ecx
jl 0x459336
mov eax, dword [0x533fec]
test eax, eax
je 0x459336
lea ecx, [edi - 1]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.00403640
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 5
call fcn.00403e70
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x459276
mov ebp, dword [esp + 0xc]
cmp dword [ebp - 4], 1
jle 0x45925c
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov ebp, dword [esp + 0xc]
push ebp
call dword [0x5066e8]
cmp dword [ebp - 4], 1
jle 0x459276
mov ecx, dword [ebp - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
push edx
push eax
mov eax, ebp
lea ecx, [esp + 0x14]
call fcn.00459380
mov edx, dword [esp + 0x10]
add edi, 0xfffffffe
push edi
push esi
lea ecx, [esp + 0x48]
inc edx
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
call fcn.00403640
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 6
call fcn.00403e70
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4592db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x45931d
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 4]
mov edi, 1
cmp eax, edi
jle 0x459304
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov esi, dword [esp + 0xc]
push esi
call dword [0x5066e8]
cmp dword [esi - 4], edi
jle 0x45931d
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
mov eax, ebp
lea ecx, [esp + 0x14]
call fcn.00459380
inc dword [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
jg 0x45935f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x28
ret 0x10