Function at 0x415da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3f8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0xc
push edi
call fcn.0040e3c0
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [0x4d9e64]
lea eax, [esp + 0x2c]
push eax
add ecx, 0x4c
call fcn.00410970
xor esi, esi
cmp dword [esp + 0x2c], ebx
jle 0x415e16
lea ebx, [ebx]
mov ecx, dword [esp + 0x30]
lea eax, [ecx + esi*4]
push eax
mov ecx, edi
call fcn.0040d630
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x415e00
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], ebx
jne 0x415e3e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00402190
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], ebx
cmp eax, ebx
jmp 0x4160b0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x44], 1
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x10]
mov ecx, 0x1e
mov edi, 0x4da170
call fcn.00432260
mov ecx, dword [esp + 0x10]
mov dword [eax], 1
mov dword [eax + 4], 8
mov dword [eax + 8], ecx
mov edx, dword [str.MSI.log]
mov dword [esp + 0x14], eax
mov dword [eax + 0xc], edx
mov ecx, dword [0x4bff4c]
mov dword [eax + 0x10], ecx
mov edx, dword [0x4bff50]
mov dword [eax + 0x14], edx
mov ecx, dword [0x4bff54]
mov dword [eax + 0x18], ecx
mov dx, word [0x4bff58]
mov word [eax + 0x1c], dx
mov byte [esp + 0x44], 2
mov eax, dword [0x4d9e64]
lea esi, [esp + 0x18]
call fcn.0041e600
mov ebx, eax
push ebx
mov byte [esp + 0x48], 3
call fcn.00441840
mov esi, dword [esp + 0x24]
add esp, 4
add esi, 0xffffffff
mov dword [esp + 0x10], eax
js 0x415ef7
lea edi, [esi + esi*2]
shl edi, 4
mov eax, dword [esp + 0x24]
add eax, edi
push eax
call fcn.0040f010
dec esi
sub edi, 0x30
test esi, esi
jge 0x415ee3
push 0
push 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x34], 0
call fcn.00442220
lea eax, [esp + 0x20]
push eax
call fcn.00441f70
mov byte [esp + 0x48], 2
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415f47
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x44], 1
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415f68
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov eax, dword [esp + 0x20]
xor esi, esi
xor ebx, ebx
cmp eax, esi
jle 0x415fb7
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edx + 0x24]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [ebp + 8]
push edi
call fcn.004160e0
test al, al
je 0x415fa9
mov eax, dword [esp + 0x24]
lea ecx, [esi + eax + 0x24]
push ecx
mov ecx, edi
call fcn.00401fa0
mov eax, dword [esp + 0x20]
inc ebx
add esi, 0x30
cmp ebx, eax
jl 0x415f74
xor esi, esi
lea ebx, [eax - 1]
cmp ebx, esi
mov byte [esp + 0x44], 0
mov dword [esp + 0xc], ebx
jl 0x41603d
lea esi, [ebx + ebx*2]
shl esi, 4
mov dword [esp + 0x10], esi
jmp 0x415fd7
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
add esi, edx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x44], 4
mov edi, dword [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416009
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
mov byte [esp + 0x44], 0
mov edi, dword [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41602d
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [esp + 0xc]
sub dword [esp + 0x10], 0x30
dec ebx
mov dword [esp + 0xc], ebx
test ebx, ebx
jge 0x415fd3
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
cmp eax, esi
je 0x41605b
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x44], 0xffffffff
mov ebx, dword [esp + 0x2c]
dec ebx
cmp ebx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], ebx
jl 0x4160a2
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + ebx*4]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x416097
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ebx, dword [esp + 0x10]
sub ebx, 1
mov dword [esp + 0x10], ebx
jns 0x416074
xor esi, esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp eax, esi
je 0x4160c0
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4