Function at 0x40bca7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f891
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x44c038]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x44dbcc]
or dword [esp + 0x2c], 0xffffffff
mov ecx, 0x44dbcc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
lea esi, [esp + 0x54]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x30], 1
call fcn.0040860a
lea esi, [esp + 0x74]
mov byte [esp + 0xa0], 1
call fcn.0040860a
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [ebp + 8]
add eax, 0x50
push eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
mov byte [esp + 0xa4], 4
mov eax, dword [edi]
push str.__interface__
push edi
call dword [eax + 8]
test al, al
je 0x40bfc5
mov eax, dword [edi]
push 1
push str.__type__
push edi
call dword [eax + 4]
test al, al
je 0x40bfc5
mov eax, dword [edi]
push ebx
push ebx
push edi
call dword [eax + 0x24]
mov ebx, dword [edi]
push eax
push eax
lea esi, [esp + 0x1c]
add ebx, 0x24
call fcn.004043dc
push eax
push edi
call dword [ebx]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x40bdab
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x40bdab
push dword [esp + 0x14]
call fcn.00426560
pop ecx
lea edx, [esp + 0x14]
call fcn.00404402
lea edi, [esp + 0x44]
call fcn.0040b86a
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
xor esi, esi
cmp dword [esp + 0x48], esi
je 0x40bfb6
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
push 0xc
cdq
pop ecx
idiv ecx
cmp dword [esp + 0x20], eax
jae 0x40bfb6
cmp dword [esp + 0x30], esi
je 0x40bfb6
cmp dword [esp + 0x20], eax
jb 0x40be00
call fcn.00426980
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
mov ebx, dword [ebp + 8]
lea esi, [ebx + 8]
lea edi, [eax + ecx]
call fcn.004100a4
push dword [edi + 4]
lea eax, [ebx + 0x10]
push 0x443434
call fcn.004019b9
pop ecx
pop ecx
call fcn.0041002d
test eax, eax
je 0x40bfa8
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x40be50
push dword [eax - 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.0040446b
mov eax, dword [esp + 0x14]
push dword [esp + 0x34]
push eax
call fcn.004100c5
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40bfa8
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.00408776
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004101f8
test eax, eax
je 0x40be9c
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push dword [esp + 0x20]
push eax
call fcn.00408719
mov eax, dword [0x44dbcc]
mov esi, 0x44dbcc
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov byte [esp + 0xa0], 5
mov eax, dword [0x44dbcc]
mov ecx, esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
push ebx
push str.count
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0xac], 6
call fcn.004074f4
cmp eax, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], ebx
jle 0x40bf7f
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
push 0x442204
call fcn.004019b9
mov edi, dword [esp + 0x30]
pop ecx
pop ecx
push 0
push 0
push edi
lea eax, [esp + 0x60]
push eax
call fcn.004086d8
mov ebx, eax
test ebx, ebx
jle 0x40bf3b
push ebx
push ebx
lea eax, [esp + 0x34]
call fcn.004087dc
push eax
push edi
lea eax, [esp + 0x60]
push eax
call fcn.004086d8
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x74]
push eax
call fcn.00408776
push ebx
push esi
lea eax, [esp + 0x7c]
push eax
call fcn.00408719
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push edx
push dword [ebp + 0xc]
push eax
call dword [ecx + 4]
test eax, eax
je 0x40bf7a
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x38]
jl 0x40bef3
jmp 0x40bf7f
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0
je 0x40bf90
push dword [esp + 0x1c]
call fcn.004269f8
pop ecx
lea eax, [esi - 0x10]
call fcn.004010aa
lea eax, [edi - 0x10]
mov byte [esp + 0xa0], 4
call fcn.004010aa
inc dword [esp + 0x20]
add dword [esp + 0x24], 0xc
jmp 0x40bdc7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x2c], esi
xor ebx, ebx
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x40bfea
push dword [esp + 0x4c]
call fcn.0040c4d9
push dword [esp + 0x48]
call fcn.004250ac
pop ecx
lea eax, [esp + 0x74]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0xa0], 1
call fcn.00408629
lea eax, [esp + 0x54]
mov byte [esp + 0xa0], 0
call fcn.00408629
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004010aa
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc