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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov ebx, ecx
call fcn.00402af0
lea eax, [edi + 4]
push eax
lea ecx, [ebx + 4]
call fcn.00402af0
lea ecx, [edi + 8]
push ecx
lea ecx, [ebx + 8]
call fcn.00402af0
lea edx, [edi + 0xc]
push edx
lea ecx, [ebx + 0xc]
call fcn.00402af0
lea eax, [edi + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.00402af0
lea ecx, [edi + 0x14]
push ecx
lea ecx, [ebx + 0x14]
call fcn.00402af0
lea edx, [edi + 0x18]
push edx
lea ecx, [ebx + 0x18]
call fcn.00402af0
lea eax, [edi + 0x1c]
push eax
lea ecx, [ebx + 0x1c]
call fcn.00402af0
mov ecx, dword [edi + 0x20]
mov dword [ebx + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [ebx + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [ebx + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [ebx + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x34], eax
mov ecx, dword [edi + 0x38]
lea eax, [edi + 0x40]
mov dword [ebp - 8], eax
mov dword [ebx + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov eax, edi
lea ecx, [ebx + 0x44]
sub eax, ebx
mov dword [ebx + 0x3c], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 5
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
mov dword [ebp - 0x10], eax
add eax, 0xfffffff0
sub esi, 0x10
cmp eax, esi
je 0x40bcf6
cmp dword [esi + 0xc], 0
jl 0x40bce9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bce9
push eax
call fcn.004022e0
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bcdb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add ecx, 0x10
mov dword [eax - 4], ecx
jmp 0x40bcf6
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
push edx
push eax
call fcn.004026b0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [eax + edx]
mov esi, dword [edx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40bd56
cmp dword [esi + 0xc], 0
jl 0x40bd49
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bd49
push eax
call fcn.004022e0
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bd3c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add ecx, 0x10
mov dword [edx], ecx
jmp 0x40bd56
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.004026b0
mov ecx, dword [ebp - 4]
add dword [ebp - 8], 8
add ecx, 8
dec dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jne 0x40bc92
mov edx, dword [edi + 0x68]
mov esi, dword [ebx + 0x68]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40bdc5
cmp dword [esi + 0xc], 0
jl 0x40bdb8
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40bdb8
push eax
call fcn.004022e0
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40bdad
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx + 0x68], eax
jmp 0x40bdc5
mov ecx, dword [edx - 0xc]
push ecx
push edx
lea ecx, [ebx + 0x68]
call fcn.004026b0
mov edx, dword [edi + 0x6c]
mov esi, dword [ebx + 0x6c]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40be1e
cmp dword [esi + 0xc], 0
jl 0x40be11
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40be11
push eax
call fcn.004022e0
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40be06
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx + 0x6c], eax
jmp 0x40be1e
mov ecx, dword [edx - 0xc]
push ecx
push edx
lea ecx, [ebx + 0x6c]
call fcn.004026b0
mov edx, dword [edi + 0x70]
mov esi, dword [ebx + 0x70]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40be77
cmp dword [esi + 0xc], 0
jl 0x40be6a
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40be6a
push eax
call fcn.004022e0
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40be5f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx + 0x70], eax
jmp 0x40be77
mov ecx, dword [edx - 0xc]
push ecx
push edx
lea ecx, [ebx + 0x70]
call fcn.004026b0
mov edx, dword [edi + 0x74]
mov esi, dword [ebx + 0x74]
lea eax, [edx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x40bed0
cmp dword [esi + 0xc], 0
jl 0x40bec3
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x40bec3
push eax
call fcn.004022e0
mov dword [ebp - 0x14], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40beb8
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx + 0x74], eax
jmp 0x40bed0
mov ecx, dword [edx - 0xc]
push ecx
push edx
lea ecx, [ebx + 0x74]
call fcn.004026b0
mov edx, dword [edi + 0x78]
mov eax, dword [ebp + 8]
lea esi, [edi + 0x7c]
mov dword [ebx + 0x78], edx
lea edi, [ebx + 0x7c]
mov ecx, 0x146
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x594]
pop edi
pop esi
mov dword [ebx + 0x594], ecx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4