Function at 0x40b870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
cmp dword [ecx + 0x74], 0
mov ebx, ecx
je 0x40b69e
push dword [ebx + 0x78]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x80], 0
je 0x40b6bb
push dword [ebx + 0x84]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0x94]
test esi, esi
je 0x40b6e9
mov edi, dword [ebx + 0x90]
jmp 0x40b6d6
add edi, 8
dec esi
je 0x40b6e9
mov eax, dword [edi]
lock dec dword [eax]
jne 0x40b6d0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
call fcn.0040e0b0
jmp 0x40b6d0
cmp dword [ebx + 0x8c], 0
je 0x40b706
push dword [ebx + 0x90]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40b7b0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x40b784
mov dword [esp], ebx
mov ebx, dword [ebx]
movdqa xmm0, xmmword [ebx]
lea ebp, [ebx + 0x10]
pmovmskb esi, xmm0
not esi
jmp 0x40b73a
lea eax, [esi - 1]
and eax, esi
dec edi
mov esi, eax
je 0x40b77e
test si, si
jne 0x40b75c
nop
movdqa xmm0, xmmword [ebp]
add ebx, 0xffffff40
add ebp, 0x10
pmovmskb esi, xmm0
cmp esi, 0xffff
je 0x40b740
not esi
tzcnt eax, esi
neg eax
lea eax, [eax + eax*2]
mov ecx, dword [ebx + eax*4 - 0xc]
lock dec dword [ecx]
jne 0x40b730
lea eax, [ebx + eax*4]
mov ecx, dword [eax - 0xc]
mov edx, dword [eax - 8]
call fcn.0040e0b0
jmp 0x40b730
mov ebx, dword [esp]
mov ecx, dword [ebx + 4]
lea eax, [ecx + 1]
mov edx, 0xc
mul edx
add eax, 0xf
and eax, 0xfffffff0
add ecx, eax
cmp ecx, 0xffffffef
je 0x40b7b0
mov ecx, dword [ebx]
sub ecx, eax
push dword [ecx - 4]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x30], 0
je 0x40b7c7
push dword [ebx + 0x34]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x3c], 0
je 0x40b7de
push dword [ebx + 0x40]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x4c], 0
je 0x40b7f5
push dword [ebx + 0x50]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x58], 0
je 0x40b80c
push dword [ebx + 0x5c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x98], 0
je 0x40b829
push dword [ebx + 0x9c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0xa4], 0
je 0x40b846
push dword [ebx + 0xa8]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebx + 0x20], 1
jne 0x40b85f
mov eax, dword [ebx + 0x28]
lock dec dword [eax]
jne 0x40b85f
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
call fcn.0040e0b0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
mov eax, dword [ecx + 0x14]
mov esi, ecx
lock dec dword [eax]
jne 0x40b883
lea ecx, [esi + 0x14]
call fcn.0040dea0
cmp dword [esi + 8], 0
je 0x40b89a
push dword [esi + 0xc]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x268]
cmp eax, 0x80000000
je 0x40b971
test eax, eax
je 0x40b8c3
push dword [esi + 0x26c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x274], 0
je 0x40b8e0
push dword [esi + 0x278]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x280], 0
je 0x40b8fd
push dword [esi + 0x284]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x290], 0
je 0x40b91a
push dword [esi + 0x294]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2a4], 0
je 0x40b937
push dword [esi + 0x2a8]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2b0], 0
je 0x40b954
push dword [esi + 0x2b4]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2c0], 0
je 0x40b971
push dword [esi + 0x2c4]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x2d4]
cmp eax, 0x80000000
je 0x40b9b3
test eax, eax
je 0x40b996
push dword [esi + 0x2d8]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2e0], 0
je 0x40b9b3
push dword [esi + 0x2e4]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esi + 0x258], 0x7fffffff
jne 0x40b9d3
cmp dword [esi + 0x248], 2
jne 0x40b9f0
cmp dword [esi + 0xc8], 2
jne 0x40ba0f
pop esi
ret
push dword [esi + 0x25c]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x248], 2
je 0x40b9c8
lea ecx, [esi + 0xd8]
call 0x40b680
lea ecx, [esi + 0x198]
call 0x40b680
cmp dword [esi + 0xc8], 2
je 0x40b9d1
add esi, 0x18
mov ecx, esi
pop esi
jmp 0x40b680