Function at 0x410500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c09e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ebp
call fcn.0040e000
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0xc], esi
cmp esi, ebx
je 0x410732
push 8
mov dword [esp + 0x18], ebx
call fcn.004259f0
add esp, 4
cmp eax, ebx
jne 0x410562
push 0x433900
lea ecx, [esp + 0x38]
xor al, al
push ecx
mov byte [esp + 0x3c], al
call fcn.0042a55f
push edi
mov edi, eax
xor edx, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 3
mov word [eax], dx
xor eax, eax
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x4105f8
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
movzx edx, word [ecx + ebx*2]
cmp edx, 0x5c
je 0x410598
cmp edx, 0x2f
jne 0x4105ef
lea edx, [ecx + eax*2]
mov esi, ebx
sub esi, eax
push edx
lea edi, [esp + 0x1c]
call fcn.0040ea50
push 0xc
call fcn.004259f0
add esp, 4
test eax, eax
je 0x410644
mov dword [esp + 0x14], eax
mov ecx, edi
push ecx
mov esi, eax
mov byte [esp + 0x30], 1
call fcn.0040e8d0
mov esi, ebp
mov edi, eax
mov byte [esp + 0x2c], 0
call fcn.0041b870
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [eax + edx*4], edi
inc dword [ebp + 4]
lea eax, [ebx + 1]
inc ebx
cmp ebx, esi
jb 0x410584
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
sub esi, eax
lea edx, [ecx + eax*2]
mov dword [esp + 0x34], edx
cmp esi, dword [esp + 0x20]
jbe 0x41066c
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.004259f0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x410659
xor al, al
mov byte [esp + 0x34], al
push 0x433900
lea eax, [esp + 0x38]
push eax
call fcn.0042a55f
push 0x433900
lea ecx, [esp + 0x38]
xor al, al
push ecx
mov byte [esp + 0x3c], al
call fcn.0042a55f
push edi
call fcn.004259b6
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
mov edi, ebx
test esi, esi
je 0x410682
mov edx, dword [esp + 0x34]
lea ecx, [esi + esi]
push ecx
push edx
push edi
call fcn.00429520
add esp, 0xc
xor eax, eax
push 0xc
mov word [edi + esi*2], ax
mov dword [esp + 0x20], esi
call fcn.004259f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4106b1
push 0x433900
lea ecx, [esp + 0x38]
xor al, al
push ecx
mov byte [esp + 0x3c], al
call fcn.0042a55f
mov dword [esp + 0x14], edi
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
mov byte [esp + 0x2c], 2
mov dword [edi], 0
neg ecx
or eax, ecx
push eax
call fcn.004259f0
add esp, 4
test eax, eax
jne 0x4106f5
xor al, al
mov byte [esp + 0x34], al
push 0x433900
lea eax, [esp + 0x38]
push eax
call fcn.0042a55f
mov ebx, dword [esp + 0x18]
lea ecx, [esi + esi + 2]
push ecx
push ebx
push eax
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.00429520
add esp, 0xc
mov esi, ebp
mov byte [esp + 0x2c], 0
call fcn.0041b870
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [eax + edx*4], edi
inc dword [ebp + 4]
push ebx
call fcn.004259b6
add esp, 4
pop edi
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8