Function at 0x414050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4acb8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00405f50
mov cl, byte [esp + 0x30]
lea edi, [esi + 0x2c8]
xor eax, eax
mov dword [esp + 0x28], eax
mov byte [edi], cl
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push 0xc800
lea ecx, [esi + 0x2dc]
push eax
mov byte [esp + 0x30], 1
call fcn.0048d480
mov dl, byte [esp + 0x30]
lea ebp, [esi + 0x4ec]
xor eax, eax
mov byte [ebp], dl
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov al, byte [esp + 0x30]
add esi, 0x504
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
add edx, 4
mov byte [esp + 0x28], 4
mov dword [ecx], 0x4b4c4c
push edx
mov ecx, ebx
call fcn.00406350
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x2cc]
test ecx, ecx
je 0x41416a
mov edx, dword [eax + 0x2d0]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x41416a
push 0x250
call fcn.004a2a14
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28], 5
je 0x41414a
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x2cc]
mov edx, dword [ecx + ebx*4]
mov ecx, eax
push edx
call fcn.00440310
jmp 0x41414c
xor eax, eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x28], 4
push eax
push 1
push ecx
mov ecx, edi
call fcn.004167b0
inc ebx
jmp 0x4140fc
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x2d8]
add eax, 0x2dc
mov dword [ecx + 0x2d8], edx
mov edx, dword [eax + 0x220]
mov dword [ecx + 0x4fc], edx
push eax
add ecx, 0x2dc
call fcn.0048d500
xor edi, edi
mov bl, 6
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x4f0]
test eax, eax
je 0x414208
mov ecx, dword [ecx + 0x4f4]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x414208
push 0x10c
call fcn.004a2a14
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28], bl
je 0x4141e8
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0x4f0]
mov ecx, dword [ecx + edi*4]
push ecx
mov ecx, eax
call fcn.00421b20
jmp 0x4141ea
xor eax, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push edx
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x34], 4
call fcn.004167b0
inc edi
jmp 0x41419b
push 0x10c
call fcn.004a2a14
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28], 7
je 0x414236
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp + 0x500]
push ecx
mov ecx, eax
call fcn.00421b20
jmp 0x41423c
mov ebp, dword [esp + 0x30]
xor eax, eax
mov edx, dword [esp + 0x14]
xor edi, edi
mov byte [esp + 0x28], 4
mov dword [esp + 0x18], edi
mov dword [edx + 0x500], eax
mov eax, dword [ebp + 0x508]
test eax, eax
je 0x414418
mov ecx, dword [ebp + 0x50c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x414418
mov ebx, 4
push ebx
call fcn.004a2a14
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x28], 8
je 0x4142a0
mov ecx, dword [ebp + 0x508]
mov edx, dword [ecx + edi*4]
mov ecx, eax
push edx
call fcn.004a339a
jmp 0x4142a2
xor eax, eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov byte [esp + 0x28], 4
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x414377
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4142d4
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebp, eax
ja 0x4142d9
mov ebp, 1
mov ecx, esi
call fcn.004137b0
mov ebx, eax
add ebx, ebp
mov eax, ebx
jns 0x4142ea
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.004a2a14
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push edi
push eax
call fcn.00491680
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00416a30
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push edi
call fcn.00491680
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00443ee0
mov eax, dword [esi + 4]
push eax
call fcn.004a2a3d
lea ecx, [ebp + ebx*4]
add esp, 4
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004137b0
lea edx, [ebp + eax*4 + 4]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esi + 4], ebp
mov ebp, dword [esp + 0x30]
mov dword [esi + 8], edx
mov dword [esp + 0x18], eax
mov edi, eax
jmp 0x414251
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4143c6
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00491680
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00416a30
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x414400
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, ebx
cmp eax, ecx
jne 0x4143b8
jmp 0x414400
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x24], ecx
push ecx
mov ecx, esi
call fcn.00491680
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x4143ed
sub eax, ebx
sub ecx, ebx
cmp eax, edi
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x4143e1
lea eax, [edi + 4]
cmp edi, eax
je 0x414400
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, ebx
cmp edi, eax
jne 0x4143f4
mov eax, dword [esi + 8]
add eax, ebx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov edi, eax
jmp 0x414251
mov eax, dword [esp + 0x14]
mov dl, byte [ebp + 0x514]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov byte [eax + 0x514], dl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4