Function at 0x413ea0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4ebef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x30], ebx
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x38]
lea eax, [ebp + 8]
lea edi, [esi + 0x154]
push eax
mov ecx, edi
mov byte [esp + 0x34], 3
call fcn.00406f20
mov edi, dword [edi]
cmp dword [edi - 0xc], ebx
je 0x413f58
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
push edi
call fcn.00406120
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00467810
add esp, 0xc
test al, al
jne 0x413f58
push 0x520384
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x4fa810
call fcn.004b700c
lea edi, [esi + 0x158]
add ebp, 0xc
push ebp
mov ecx, edi
call fcn.00406f20
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x413fb7
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
push edi
call fcn.00406120
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00467810
add esp, 0xc
test al, al
jne 0x413fb7
push 0x520384
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x4fa810
call fcn.004b700c
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x413fde
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x413fde
push 0x520384
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x4fa7e4
call fcn.004b700c
mov eax, dword [esi + 0x150]
test eax, eax
lea edi, [esi + 0x150]
je 0x413ff4
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ebp, [esi + 0x15c]
mov dword [edi], 0
mov eax, dword [ebp]
test eax, eax
je 0x41400d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp], 0
mov eax, dword [esi + 0x160]
test eax, eax
je 0x414024
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
push 0x4f9980
push 0x17
push 0
push 0x507634
mov dword [esi + 0x160], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x41405e
push 0x520384
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x4fa790
call fcn.004b700c
mov ecx, dword [esi + 0x11c]
mov eax, dword [edi]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4141a6
mov ebx, dword [esp + 0x20]
mov eax, dword [esi + 0x11c]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
jge 0x4140a6
push 0x520384
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x4fa738
call fcn.004b700c
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call fcn.0040be50
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
lea ebx, [esi + 0x16c]
push ebx
test eax, eax
mov eax, dword [edi]
mov edx, dword [eax]
push 0x507204
push ecx
jne 0x414138
push 0x507694
push 0x5073a4
push eax
call dword [edx + 0x18]
test eax, eax
jl 0x4140fc
mov ecx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [eax]
push ebx
push 0x507204
push ecx
push 0x5076e4
push 0x5073a4
push eax
call dword [edx + 0x18]
mov ecx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [eax]
lea ebx, [esi + 0x170]
push ebx
push 0x507204
push ecx
push 0x507694
push 0x507394
push eax
call dword [edx + 0x18]
test eax, eax
jl 0x414168
mov ecx, dword [ebp]
push ebx
push 0x507204
push ecx
push 0x5076e4
push 0x507394
jmp 0x414160
push 0x5076e4
push 0x5073a4
push eax
call dword [edx + 0x18]
mov ecx, dword [ebp]
lea ebx, [esi + 0x170]
push ebx
push 0x507204
push ecx
push 0x5076e4
push 0x5073a4
mov eax, dword [edi]
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov ecx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [eax]
lea ebx, [esi + 0x178]
push ebx
push 0x5071e4
push ecx
push 0
push 0x507384
push eax
call dword [edx + 0x18]
mov ecx, dword [ebp]
mov eax, dword [edi]
mov edx, dword [eax]
lea ebx, [esi + 0x17c]
push ebx
push 0x5071d4
push ecx
push 0
push 0x507384
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41427b
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00406120
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x11c]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov byte [esp + 0x3c], 4
call dword [ecx + 0xc]
test eax, eax
setl byte [esp + 0x13]
add ebx, 0xfffffff0
mov byte [esp + 0x30], 3
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414206
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x414225
push 0x520384
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x4fa6e0
call fcn.004b700c
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esi + 0x160]
mov ecx, ebx
call fcn.0040be50
mov ecx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [eax]
lea ebx, [esi + 0x174]
push ebx
push 0x507204
push ecx
push 0x5076d4
push 0x5073a4
push eax
call dword [edx + 0x18]
test eax, eax
jge 0x41427b
mov eax, dword [esi + 0x160]
mov edi, dword [edi]
mov ecx, dword [edi]
push ebx
push 0x507204
push eax
push 0x5076d4
push 0x507394
push edi
call dword [ecx + 0x18]
cmp dword [ebp], 0
jne 0x4142a2
mov eax, dword [esi + 0x160]
test eax, eax
jne 0x4142a2
push 0x520384
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0x4fa6a8
call fcn.004b700c
mov ecx, dword [esp + 0x38]
push 0x4fa69c
add ecx, 4
call fcn.00403220
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esi + 0x2c4], 3
mov byte [esp + 0x30], 2
je 0x4142d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
mov byte [esp + 0x30], 1
je 0x4142e3
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414306
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41432c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4