Function at 0x4163d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x493248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0042a410
or eax, 0xffffffff
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xcc]
mov dword [esp + 0x54], ebp
cmp eax, ebp
mov dword [esp + 0xc], ebp
jle 0x4165b4
push ebx
push edi
lea edi, [esi + 0xa4]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.0042b380
mov eax, dword [eax]
mov edx, dword [esi + 0xa8]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x10], ecx
je 0x41659b
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x2c], edx
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x30], esi
mov ebx, dword [ecx + 0x20]
mov dword [esp + 0x34], ebx
mov edi, dword [ecx + 0x14]
mov dword [esp + 0x28], edi
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x24], eax
mov ebp, dword [ecx + 0x24]
mov dword [esp + 0x38], ebp
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x3c], ebp
mov ebp, dword [ecx + 0x2c]
mov dword [esp + 0x40], ebp
mov ecx, dword [ecx + 0x30]
cmp ecx, 1
mov dword [esp + 0x44], ecx
jne 0x416506
mov esi, dword [esp + 0x18]
or ecx, 0xffffffff
xor ebp, ebp
mov edx, dword [esi + 0xe8]
mov eax, dword [edx + eax*4]
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x68], ebp
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x6c], ebp
mov dword [eax + 0x84], ebp
mov eax, dword [esi + 0xe8]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + ecx*4]
lea ecx, [esp + 0x20]
mov dword [edx + 0x70], ebp
mov eax, dword [esp + 0x10]
push eax
push ecx
lea ecx, [esi + 0xa4]
call fcn.0042ad10
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x41657d
xor ebp, ebp
cmp ebx, ebp
jne 0x416570
push esi
mov esi, dword [esp + 0x68]
push edx
push edi
mov ecx, esi
call fcn.00408180
mov edx, dword [esp + 0x28]
push ebp
push edx
mov ecx, esi
call fcn.0040b3a0
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x30]
add eax, 0x10
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 0x14], edx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x1c], edx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x20], ecx
lea ecx, [esp + 0x10]
call fcn.0042c7a0
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea edi, [esi + 0xa4]
push edx
mov ecx, edi
call fcn.0042c750
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x41646b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xcc]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x416444
pop edi
pop ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], ebp
pop esi
cmp eax, ebp
pop ebp
je 0x4165cb
push eax
call fcn.0046a70c
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4