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

Disassembly:
push 0x1a8
mov eax, 0x446645
call fcn.0042bfb7
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40af31
test esi, esi
je 0x40b46e
xor edi, edi
jmp 0x40af3b
push ebx
call fcn.00414e69
pop ecx
lea edi, [eax + 8]
test esi, esi
je 0x40af4b
push esi
call fcn.00414e69
pop ecx
lea ebx, [eax + 8]
jmp 0x40af4d
xor ebx, ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40af60
push eax
call fcn.00414e74
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x40af64
and dword [ebp - 0x14], 0
test esi, esi
je 0x40af76
push esi
call fcn.00414e74
pop ecx
mov edx, eax
mov dword [ebp - 0x1c], eax
jmp 0x40af7b
xor edx, edx
mov dword [ebp - 0x1c], edx
test edi, edi
je 0x40b004
test ebx, ebx
je 0x40af97
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
ja 0x40b004
jb 0x40af97
mov eax, dword [edi]
cmp eax, dword [ebx]
jae 0x40b004
push 0x80
call fcn.0042a681
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40afcc
xor eax, eax
mov dword [ebx], vtable.CMemRegion.0
push eax
mov dword [ebx + 0x74], eax
lea ecx, [ebx + 8]
push edi
mov dword [ebx + 0x78], eax
call fcn.0040a7d5
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x7c], 1
jmp 0x40afce
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
push 0
push 0
push ebx
push dword [ebp + 0x14]
call fcn.00415d5e
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push 0
push dword [ebp - 0x14]
call fcn.0040af08
push dword [ebp + 8]
call fcn.00414fd1
mov ebx, eax
add esp, 0x18
mov dword [ebp + 8], ebx
jmp 0x40af21
test ebx, ebx
je 0x40b0d4
test edi, edi
je 0x40b028
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
jb 0x40b0d4
ja 0x40b028
mov eax, dword [edi]
cmp eax, dword [ebx]
jbe 0x40b0d4
push 0x80
call fcn.0042a681
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
and dword [ebp - 4], 0
test edi, edi
je 0x40b078
lea eax, [ebp - 0x13c]
mov ecx, ebx
push eax
call fcn.0040e0cc
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [edi], vtable.CMemRegion.0
or ebx, 1
mov dword [edi + 0x74], ecx
push ecx
mov dword [edi + 0x78], ecx
lea ecx, [edi + 8]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040a7d5
or dword [edi + 0x7c], 0xffffffff
mov esi, dword [ebp + 0xc]
jmp 0x40b07d
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], 2
call fcn.00415d5e
or dword [ebp - 4], 0xffffffff
mov edi, eax
test bl, 1
je 0x40b0b0
and ebx, 0xfffffffe
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], ebx
call fcn.0040a560
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push 0
call fcn.0040af08
push esi
call fcn.00414fd1
mov esi, eax
add esp, 0x18
mov dword [ebp + 0xc], esi
jmp 0x40af1e
xor ecx, ecx
test edx, edx
sete cl
xor eax, eax
cmp dword [ebp - 0x14], eax
sete al
cmp eax, ecx
jne 0x40b356
mov eax, dword [edi + 0x64]
cmp eax, dword [ebx + 0x64]
jne 0x40b356
lea eax, [ebx + 0x6c]
lea ecx, [edi + 0x6c]
push eax
call fcn.0040ed2a
test eax, eax
jne 0x40b356
lea eax, [ebx + 0x70]
lea ecx, [edi + 0x70]
push eax
call fcn.0040ed2a
test eax, eax
jne 0x40b356
mov eax, dword [edi + 8]
cmp eax, dword [ebx + 8]
jne 0x40b356
mov eax, dword [edi + 0x68]
cmp eax, dword [ebx + 0x68]
jne 0x40b356
lea ecx, [ebp - 0xc4]
call fcn.0040a178
mov eax, dword [edi]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc4], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x5c], eax
lea eax, [edi + 0x70]
push eax
mov dword [ebp - 4], 3
call fcn.0040399c
mov eax, dword [edi + 0x60]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0xbc], eax
lea eax, [edi + 0x6c]
push eax
call fcn.0040399c
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x5c]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 0x58]
sub eax, dword [ebx + 0x58]
mov dword [ebp - 0x4c], eax
sbb ecx, dword [ebx + 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0x18]
sub eax, dword [ebx + 0x18]
mov edx, dword [edi + 0x38]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x68], ecx
mov ecx, dword [edi + 0x1c]
sbb ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xac], eax
mov eax, dword [edi + 0x20]
sub eax, dword [ebx + 0x20]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xa8], ecx
mov ecx, dword [edi + 0x24]
sbb ecx, dword [ebx + 0x24]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xa4], eax
mov eax, dword [edi + 0x28]
sub eax, dword [ebx + 0x28]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xa0], ecx
mov ecx, dword [edi + 0x2c]
sbb ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [edi + 0x30]
sub eax, dword [ebx + 0x30]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x98], ecx
mov ecx, dword [edi + 0x34]
sbb ecx, dword [ebx + 0x34]
sub edx, dword [ebx + 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x94], eax
mov eax, dword [edi + 0x3c]
sbb eax, dword [ebx + 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x90], ecx
mov ecx, dword [edi + 0x48]
sub ecx, dword [ebx + 0x48]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x4c]
sbb eax, dword [ebx + 0x4c]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [edi + 0x50]
sub ecx, dword [ebx + 0x50]
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0x54]
sbb eax, dword [ebx + 0x54]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x74], ecx
mov ecx, dword [edi + 0x40]
sub ecx, dword [ebx + 0x40]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0x44]
sbb eax, dword [ebx + 0x44]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x80], eax
mov eax, dword [edi + 0x10]
sub eax, dword [ebx + 0x10]
mov edi, dword [edi + 0x14]
sbb edi, dword [ebx + 0x14]
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edi
jne 0x40b2cc
mov edi, dword [ebp - 0x4c]
or edi, dword [ebp - 0x40]
jne 0x40b2cc
mov edi, dword [ebp - 0x48]
or edi, dword [ebp - 0x2c]
jne 0x40b2cc
mov edi, dword [ebp - 0x44]
or edi, dword [ebp - 0x34]
jne 0x40b2cc
mov edi, dword [ebp - 0x20]
or edi, dword [ebp - 0x3c]
jne 0x40b2cc
mov edi, dword [ebp - 0x24]
or edi, dword [ebp - 0x28]
jne 0x40b2cc
or edx, dword [ebp - 0x30]
jne 0x40b2cc
or ecx, dword [ebp - 0x38]
jne 0x40b2cc
or eax, dword [ebp - 0x18]
je 0x40b328
push 0x80
call fcn.0042a681
mov edi, eax
xor ebx, ebx
pop ecx
test edi, edi
je 0x40b303
mov dword [edi], vtable.CMemRegion.0
lea eax, [ebp - 0xc4]
push ebx
mov dword [edi + 0x74], ebx
lea ecx, [edi + 8]
push eax
mov dword [edi + 0x78], ebx
call fcn.0040a7d5
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x7c], ebx
jmp 0x40b305
mov edi, ebx
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
push edi
push dword [ebp + 0x14]
call fcn.00415d5e
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.0040af08
add esp, 0x14
push dword [ebp + 8]
call fcn.00414fd1
mov ebx, eax
push esi
mov dword [ebp + 8], ebx
call fcn.00414fd1
or dword [ebp - 4], 0xffffffff
mov esi, eax
pop ecx
pop ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp + 0xc], esi
call fcn.0040a560
jmp 0x40af21
push 0x80
call fcn.0042a681
mov dword [ebp - 0x18], eax
pop ecx
test eax, eax
je 0x40b38e
lea esi, [eax + 8]
mov dword [eax], vtable.CMemRegion.0
xor eax, eax
mov ecx, esi
push eax
mov dword [esi + 0x6c], eax
push edi
mov dword [esi + 0x70], eax
call fcn.0040a7d5
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x74], 1
jmp 0x40b390
xor eax, eax
mov ecx, dword [ebp + 0x10]
push 0
push 0
push eax
push dword [ebp + 0x14]
call fcn.00415d5e
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push 0
push dword [ebp - 0x14]
call fcn.0040af08
push 0x80
call fcn.0042a681
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 4
test edi, edi
je 0x40b403
lea eax, [ebp - 0x1b4]
mov ecx, ebx
push eax
call fcn.0040e0cc
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [edi], vtable.CMemRegion.0
or ebx, 2
mov dword [edi + 0x74], ecx
push ecx
mov dword [edi + 0x78], ecx
lea ecx, [edi + 8]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040a7d5
or dword [edi + 0x7c], 0xffffffff
jmp 0x40b408
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], 6
call fcn.00415d5e
or dword [ebp - 4], 0xffffffff
mov esi, eax
test bl, 2
je 0x40b43b
and ebx, 0xfffffffd
lea ecx, [ebp - 0x1b4]
mov dword [ebp - 0x10], ebx
call fcn.0040a560
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push 0
call fcn.0040af08
push dword [ebp + 8]
call fcn.00414fd1
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp + 8], ebx
call fcn.00414fd1
mov esi, eax
add esp, 0x1c
mov dword [ebp + 0xc], esi
jmp 0x40af21
call fcn.0042bf85
ret