Function at 0x416980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422fea
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4316ac]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov esi, dword [ebp + 0x1c]
dec dword [esi + 0xc]
inc dword [esi]
add dword [esi + 8], 0xfffffffe
mov eax, dword [ecx + 0x108]
push eax
push 1
push 0
lea ecx, [esp + 0x38]
call fcn.0042007c
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x84], 0
call fcn.00420070
mov edx, dword [esi + 0xc]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0042006a
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
inc eax
push eax
mov ecx, edi
call fcn.00420064
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0042006a
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, edi
call fcn.00420064
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0042006a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, edi
call fcn.00420064
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0042006a
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, edi
call fcn.00420064
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x70], edx
inc eax
inc ecx
mov dword [esp + 0x64], eax
push 0xe0e0e0
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], ecx
push eax
mov ecx, edi
call fcn.00420082
push 0
push 1
push 0
lea ecx, [esp + 0x30]
call fcn.0042007c
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov byte [esp + 0x84], 1
call fcn.00420070
mov edx, dword [esi + 4]
mov eax, dword [esi]
inc edx
push edx
inc eax
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.0042006a
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
inc edx
push edx
push eax
mov ecx, edi
call fcn.00420064
mov ecx, dword [esi + 4]
mov edx, dword [esi]
inc ecx
push ecx
inc edx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0042006a
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
push ecx
inc edx
push edx
mov ecx, edi
call fcn.00420064
push ebx
mov ecx, edi
call fcn.00420070
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
cmp dword [edx + ecx*4 + 0x2c], 0
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
jle 0x416d6c
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], eax
add ecx, 2
sub eax, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x14]
imul eax, dword [ebx + 0x2c]
add edx, 2
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], edx
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
inc eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x114]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.00420082
cmp dword [ebx + 0x34], 0
je 0x416d6c
lea ecx, [esp + 0x10]
call dword [0x4247d0]
lea ecx, [esp + 0x14]
call dword [0x4247d0]
lea eax, [ebx + 0x30]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 3
call dword [0x4247a4]
lea ecx, [esp + 0x14]
call dword [0x4247a8]
test al, al
je 0x416bf4
mov ecx, dword [ebx + 0x2c]
push ecx
push 0x4285e4
lea edx, [esp + 0x18]
push edx
jmp 0x416c08
mov eax, dword [ebx + 0x2c]
push eax
lea ecx, [esp + 0x18]
call dword [0x424830]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [0x4247c0]
add esp, 0xc
push 1
mov ecx, edi
call fcn.004200f4
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
call dword [0x4242ac]
inc dword [esp + 0x58]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x428334
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov esi, dword [0x424038]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
mov byte [esp + 0x90], 4
call esi
push eax
lea ecx, [esp + 0x20]
call fcn.0041ffd4
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004200ee
mov ecx, dword [ebp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ecx
mov ecx, edi
call edx
mov ebx, dword [edi]
push 0x25
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call dword [0x424854]
push eax
lea ecx, [esp + 0x1c]
call dword [0x424830]
mov edx, dword [ebx + 0x70]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
call fcn.0041fe1e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
call esi
push eax
lea ecx, [esp + 0x20]
call fcn.0041ffd4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004200ee
mov eax, dword [ebp + 0x14]
mov edx, dword [edi]
push eax
mov ecx, edi
mov edx, dword [edx + 0x38]
call edx
mov esi, dword [edi]
push 0x25
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call dword [0x424854]
push eax
lea ecx, [esp + 0x1c]
call dword [0x424830]
mov edx, dword [esi + 0x70]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
call fcn.0041fe1e
push 0
mov ecx, edi
call fcn.004200ee
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 3
mov dword [esp + 0x1c], 0x428334
call fcn.0040e690
lea ecx, [esp + 0x14]
call dword [0x424834]
lea ecx, [esp + 0x10]
call dword [0x424834]
mov esi, 0x42802c
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0
mov dword [esp + 0x24], esi
call fcn.0040e690
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x2c], esi
call fcn.0040e690
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c